update Encryption and Decryption