The Nihilist cipher was used by Russian revolutionaries in the 1880s. It combines a Polybius square — which converts letters to numbers — with an additive keyword, producing a numerical ciphertext. It is an early example of layering substitution and addition, an idea that culminated decades later in the Soviet VIC cipher.
How it works
First a keyed Polybius square is built: write the unique letters of a keyword into a 5×5 grid (merging I and J), then fill the rest of the alphabet. Every letter is now identified by its row and column, both numbered 1–5, giving a two-digit number from 11 to 55.
Encryption then proceeds in three steps:
- Convert the plaintext letters to their Polybius numbers.
- Convert the additive keyword’s letters to Polybius numbers and repeat them across the message.
- Add each keyword number to the matching plaintext number using normal carrying addition:
C = P + K
Decryption subtracts the same keyword numbers, P = C - K, and looks each result back up in the square. Because the addition carries, sums can reach into the hundreds, so the ciphertext numbers are written space-separated.
Example
With square keyword ZEBRAS and additive keyword RUSSIA, the message DYNAMITE WINTER PALACE enciphers to:
37 106 62 36 67 47 59 63 74 53 73 60 26 65 64 36 66 30 36 63
Subtracting the repeating RUSSIA coordinates from each group and reading the square recovers the original message.
Notes
- The letter J is treated as I in both directions because they share a square cell.
- Security depends heavily on the additive keyword length; a short repeating key leaks structure to cryptanalysts, just as it does in Vigenère.
- The Nihilist family inspired the Soviet VIC cipher, which replaces the simple square with a straddling checkerboard and adds transposition for far greater strength.