Added symmetric encryption and decryption functions