Adding encryption and decryption