Encryption, decryption, and JSON features added