Cryptography

If you're interested in classical cryptography, codes, and ciphers, here are some tools for Mac users. They don't solve your cipher, but they help you to solve it.

These are perl scripts that can be run on the Mac. You can run them from Terminal (Applications > Utilities > Terminal). Of course, you can also run them on a UNIX box.

How to Save Files: right-click the file (or Control-click), then select "Save File to Downloads ..." OR click a link below to see the script, select all, copy, then go to Terminal, type pico [Return], and paste. To save your new pico document, Control-O to write out (name it appropriately).

Enigma mit Steckerbrett (Hack a duck?): WDUYV DQCDE
Enigma (Alt Country?): XPMZF DJRKX FQYWF UOQPZ CYETZ ZZYOJ TYOLE


Photo by Oliver Robinson

My advice is to make a folder and drag all the scripts into it. You can then navigate to your folder by 1) typing cd (then space), and 2) dragging the folder image directly into the Terminal window. The folder will magically turn into a path. Hit return. To list the contents, type ls.

Make Beaufort Square (screen shot below rt.)

In Terminal $> perl mkbeau.pl

Make Vigenère Square

In Terminal $> perl mkvig.pl

Make 5x5 Polybius Square

In Terminal $> perl polyfive.pl
Make 6x6 Polybius Square
In Terminal $> perl polysix.pl
JHI's Ngram script

In Terminal $> pico this.txt

Replace current contents of this.txt with your cipher. (Control-K deletes a line; copy-paste into Terminal from your text file.)

In Term. $> more this.txt | perl mkbeau.pl

LINKS: