Cracking CIPHER: a beginner’s guide to substitution codes
Every CIPHER puzzle is a quotation in a simple letter-swap code. Here are the techniques code-breakers have used for centuries, and how to apply them.
CIPHER hides a quotation from a classic book behind a substitution code: every letter of the alphabet has been swapped for a different one, and the same swap is used all the way through. Every coded K might stand for E, every coded R for T, and so on. No letter stands for itself.
It is one of the oldest kinds of code there is, and it has a well-known weakness. Language is not random. Some letters, words and patterns turn up far more than others, and those patterns survive the swap. Here is how to use them.
Start with what you are given
Each puzzle begins with a few letters already filled in. Early in the week there are plenty; by Sunday there are fewer, and the quotation is longer. Before doing anything else, read the coded text with the given letters in place. Often a word or two is already nearly complete.
One-letter words
A word of a single letter is almost always A or I. If the quotation has two different one-letter words, you have probably found both. If it has only one, look at its position: "I" tends to begin a clause and be followed by a verb; "a" is followed by a noun or an adjective.
The commonest letter
In ordinary English text, E is the most common letter by a distance, followed by T, A, O, I and N. Count the coded letters (or just look for the one you keep seeing) and try E for the most frequent.
Short quotations do not always follow the averages, so treat this as a strong first guess rather than a rule. If E for the commonest letter produces nonsense in two or three words, try T or A instead.
Short words do the heavy lifting
Most of the sentence will be built around a small set of very common short words. These are your best foothold.
- Two letters: OF, TO, IN, IT, IS, BE, AS, AT, SO, WE, HE, BY, OR, ON, DO, IF, ME, MY, UP, AN, GO, NO, US.
- Three letters: THE, AND, FOR, ARE, BUT, NOT, YOU, ALL, ANY, CAN, HER, WAS, ONE, OUR, OUT, HAS, HIM, HIS, HOW, MAN, NOW, WHO.
THE is the single most useful word to find. A three-letter coded word that appears several times, especially one whose last letter is your suspected E, is very likely THE. Get it and you have three letters that appear all over the quotation.
Apostrophes and doubles
Punctuation is left in place, and it gives a lot away.
- A single letter after an apostrophe is nearly always S or T (IT'S, DON'T), sometimes D or M (I'D, I'M).
- Two letters after an apostrophe are usually LL, RE or VE (WE'LL, THEY'RE, I'VE).
- A doubled coded letter in the middle of a word is often LL, SS, EE, OO, TT or FF.
Word shapes
Experienced solvers look at the pattern of letters in a word, not just its length. A seven-letter coded word with the pattern 1-2-3-3-4-5-6 has a double in the middle. One with the pattern 1-2-3-1 starts and ends with the same letter: THAT, ELSE or EDGE. Patterns like these narrow a word to a handful of candidates before you know any of its letters.
Let the quotation help
The quotations come from books that are now out of copyright: classic novels, essays and poems. That means they often use slightly older English. Words like UPON, WHICH, SHALL and THOUGH turn up more often than they would in a newspaper. When a long word refuses to come, ask what a Victorian writer would have said.
Once you have half the letters, stop decoding letter by letter and read the sentence aloud. Your brain is very good at filling gaps in familiar phrases, and a sentence that is 60% there is often obvious.
Checks and reveals
You can check your letters up to three times, which marks any you have wrong, and reveal a letter up to three times. Each costs points, and so does a wrong submission.
The best time to check is when you have most of the quotation but something does not quite fit. A check then tells you which of your guesses was the weak one. Revealing is best saved for a rare letter you cannot reach any other way: J, Q, X and Z often appear only once and give no pattern to work from.
A worked start
Suppose part of a puzzle reads:
QXK KMW RV QXK PQRJB
The three-letter word QXK appears twice, so it is probably THE: Q = T, X = H and K = E. Now the second word, KMW, begins with E, and a three-letter word starting with E is a short list: END, EGG, EYE, EAR… The two-letter RV that follows it is a good fit for OF, so try R = O and V = F.
The last word, PQRJB, now reads ?TO??. Five letters with T and O in second and third place: STORY, STORM, STONE, STOCK. STONE is out, because E is already taken by K. Whichever it is, the phrase is shaping up as THE END OF THE STOR?, and END fits the second word perfectly with M = N and W = D. A Y or an M elsewhere in the quotation settles the last letter.
That is the whole method: find a foothold, follow the letters it gives you into new words, and repeat until the sentence reads itself.
More tips are in the CIPHER guide, and every past quotation, with its author and source, is in the archive.