update Encrypt and decrypt example