Simple Caesar Cipher
Requires a Wolfram Notebook System
Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.
The Caesar (or shift substitution) cipher is a widely known encryption method in which each character in the message is simply shifted a set number of places in the alphabet (e.g., with an offset of two, A is encoded as C, B as D, etc.). Decryption is achieved either by simply reversing the shift with its inverse or adding a further shift such that .
[more]
Contributed by: Andrew Graham (September 2013)
Open content licensed under CC BY-NC-SA
Snapshots
Details
See "Caesar Cipher" on Wikipedia.
String matching code is derived from the Mathematica tutorial Working with String Patterns, especially the sections General String Patterns & Some Examples Highlight Patterns. In coding the PaneSelector statements, the author was greatly helped by inspecting the Demonstration "Volumes of Solids of Revolution: Shell Method" by Helen Papadopoulos.
Permanent Citation
"Simple Caesar Cipher"
http://demonstrations.wolfram.com/SimpleCaesarCipher/
Wolfram Demonstrations Project
Published: September 20 2013