Use Symmetric Key Encryption and Decryption
Symmetric key encryption allows for ciphertext to be encrypted and decrypted with the same key.
Generate a key with the default settings.
In[1]:=

key = GenerateSymmetricKey[]
Out[1]=

Encrypt a message using this key.
In[2]:=

encrypted =
Encrypt[key, "I hid the gold on an island in the Caribbean."]
Out[2]=

Using the same key, decrypt the message.
In[3]:=

Decrypt[key, encrypted]
Out[3]=
