The Cipher Room
Three tables, each a step up from the last. Take them in any order and take as long as you like. To learn the ideas first, start with the course Secret Writing.
Table one
Alberti's disk
In 1467 Leon Battista Alberti described a cipher disk he called the Formula: two rings of letters on one pin, the inner one free to turn. Read a letter on the outer ring and write the letter beside it on the inner ring. His step forward was to turn the inner ring partway through a message, so one message uses more than one alphabet.
In code
Today
Today's cryptogram
A sentence from Edgar Allan Poe's story The Gold-Bug, from the scene where Legrand explains how he cracked a pirate's cipher. Every letter has been swapped for another, the same swap all through, and no letter stands for itself. Count the letters, guess the common ones, and the words start to show. Today's sentence is the same for everyone.
Each box is one code letter and how often it appears. Type the letter you think it stands for.
Why counting works, and how many keys there are
Poe's Legrand: "in English, the letter which most frequently occurs is e." So the commonest code letter is a good first guess for E.
A shift cipher: 25 keys. Only 25 shifts to try. You could try them all in a minute.
A swapped alphabet: about 4 × 10²⁶ keys. Every way to scramble the alphabet. A computer trying a billion keys a second would need about 13 billion years, so nobody tries keys: the letter fingerprint cracks it.
Table three
Kasiski's method
A keyword cipher is a disk turned by a word: each letter of the keyword sets the disk for one letter of the message, and the keyword repeats. In 1863 Friedrich Kasiski published a way in (Charles Babbage seems to have found it on his own by 1846). Where the message repeats itself and the keyword lines up the same way, the code repeats too, and the gaps between those repeats are whole turns of the keyword.
Below is Legrand's treasure message from the same story, put through a keyword cipher by us.
Step 1: the repeats and their gaps
| Group | Where it starts | Gaps |
|---|
Step 2: how long is the keyword?
It has to divide every gap. Pick a length.
Step 3: each row is a plain shift
Every fifth letter was shifted by the same keyword letter. Turn each row until its letters read as English, using the letter counts beside it.
The message, read with your rows
A stone in Manhattan
The stone in Trinity Churchyard
James Leeson, who died in 1794, is buried in Trinity Churchyard in lower Manhattan. Across the top of his gravestone runs a line in a grid cipher of the kind Freemasons used, now called Pigpen. Each letter is the shape of the walls around it in a grid, with a dot for the second half of the alphabet. Below is the line, drawn with a Pigpen key, and the key itself. Grid keys were drawn in more than one arrangement, so this one may not match the carving stroke for stroke.
The key
Source for the quotations and the treasure message: Edgar Allan Poe, "The Gold-Bug", in The Works of Edgar Allan Poe, Volume 1. Project Gutenberg eBook #2147. Public domain. The cipher engine is the one children use in CipherForge and the door locks of EscapeForge on Spark & Anvil.