Wolfram Function Repository
Instantuse addon functions for the Wolfram Language
Function Repository Resource:
Encipher a string using the Chaocipher
ResourceFunction["ChaoCipher"][string,{α_{p},α_{p}}] enciphers string using the plain text alphabet α_{p} and the cipher alphabet α_{c}. 
the encoded letter is therefore "A".
Encipher a piece of text using unshuffled plain and cipher alphabets:
In[1]:= 

Out[1]= 

Encode a ‘constant’ string:
In[2]:= 

Out[2]= 

Use random plain and cipher alphabets:
In[3]:= 

Out[5]= 

ChaoDecipher can be used to reverse the encryption. First encode a piece of string:
In[6]:= 

Out[6]= 

Now we can decipher it:
In[7]:= 

Out[7]= 

Letters with diacritics are ignored:
In[8]:= 

Out[8]= 

Use RemoveDiacritics to remove the diacritics:
In[9]:= 

Out[9]= 

This work is licensed under a Creative Commons Attribution 4.0 International License