Strategy for optical data encryption and decryption using a D-A type stimuli-responsive AIE material.