Added functional symmetric encryption and decryption