The Nihilist cipher starts with a 5 by 5 square of letters, built from a short word called the Polybius key. Every letter gets a two-digit number: its row first, then its column. Then a second keyword is written again and again under the message, and each keyword letter's number is added to the message letter's number. The sums are the cipher. The name comes from the Russian Nihilists, who used a cipher like this in the 1800s to send secret notes from prison. Putting a second set of numbers on top is called superencipherment, and it is much harder to crack than the square alone.


How it works
Take the Polybius key PLAYFIR. Write the key first (skipping repeated letters), then the rest of the alphabet. There are 26 letters and 25 squares, so I and J share one:
- Row 1: P L A Y F
- Row 2: I R B C D
- Row 3: E G H K M
- Row 4: N O Q S T
- Row 5: U V W X Z
M is in row 3, column 5, so M is 35. Encode MEET AT DAWN with the keyword KEY. The keyword repeats under the message (KEYKEYKEYK), and K is 34, E is 31, Y is 14. The first letter: M (35) + K (34) = 69. Do the same down the line and the message becomes:
69 62 45 79 44 59 59 44 67 75
Decoding it
Write the keyword over the numbers, look up each keyword letter, and subtract. Take 34 from 69, column by column: 9 − 4 = 5 and 6 − 3 = 3, so 35. Row 3, column 5 is M. Useful checks: every digit of a plain number must be 1 to 5, so a 0 or a 6 to 9 means a slip in your subtraction. A cipher number of 100 or more means both letters sit low in the square, in row 4 or 5. And if a sum goes over 99, just write all three digits. There is no wrapping around.
The card shows both keys: Polybius key and Keyword. Type the keyword into the Keyword box and it repeats above the cipher numbers. Each column holds the key letter, the cipher number, the key number, the plain number and a box for your letter. In Options, under Display: Show square helper, Build the square for me, Fill in the key numbers, Subtract for me, Highlight errors when complete and Auto fill. As you improve, turn them off one by one until the board is the paper sheet from a test: just cipher numbers and empty rows. Print / share prints the keys, the numbers in columns and the square, with switches to fill in as much or as little as you like.
Codebusters
The 2027 Science Olympiad Division C list has the Nihilist cipher at Regionals as a decode: you are given the keys. At State and National it can also be a cryptanalysis question, with a crib no shorter than double the keyword length. The app's Nihilist puzzles are the decode kind, with both keys given. For the crib version, subtract a crib letter's number from the cipher number above it to get the key number for that spot, then check it against the repeats.
Practice it
There is no Nihilist flashcard deck, because the square changes with every key. Once the numbers are turned back into letters, the English Word Patterns decks in Reference & Flashcards help you check that what you decoded reads like English. Flip cards, swipe into Know or Still learning, then take the multiple-choice Test. The same kind of 5x5 square drives Checkerboard, and Tap Code taps out a grid like it.


