Added encryption and decryption functions to be used in association with the cookie