add dycryption and encryption