Added encryption and decryption.