Function Repository Resource:

ScreamCipher

Source Notebook

Scream cipher as defined by Randall Munroe in xkcd #3054

Contributed by: Arnoud Buzing

ResourceFunction["ScreamCipher"][string]

gives the Scream cipher for the given string.

Details

The Scream cipher was invented by Randall Munroe in XKCD cartoon #3052.
In the Scream cipher, messages consist of all As, with different letters distinguished using diacritics.
ResourceFunction["ScreamCipher"] is only defined for upper case Latin characters A through Z.

Examples

Basic Examples

The original XKCD cartoon, by Randall Munroe:

Apply ScreamCipher to the given string:

In[1]:=
ResourceFunction["ScreamCipher"]["SCREAM CIPHER, BY RANDALL MUNROE"]
Out[1]=

Apply the cipher to another message:

In[2]:=
ResourceFunction[
 "ScreamCipher"]["IN THE SCREAM CIPHER, MESSAGES CONSIST OF ALL AS, WITH DIFFERENT LETTERS DISTINGUISHED USING DIACRITICS."]
Out[2]=

The Scream cipher can be used to encrypt a message that makes you want to scream:

In[3]:=
ResourceFunction[
 "ScreamCipher"]["YOUR MESSAGE HERE!!! THIS IS VERY UPSETTING!!!"]
Out[3]=

Publisher

Arnoud Buzing

Requirements

Wolfram Language 14.0 (January 2024) or above

Version History

  • 1.0.0 – 07 March 2025

Related Resources

License Information