StringMash.com

Nihilist cipher

Letters become numbers from a keyed Polybius square, and a key word is added on top.

Conversion
22 characters
Updates as you type
Square: zebras · Key: russian

Show the steps
  1. The square, from the square key: ZEBRA / SCDFG / HIKLM / NOPQT / UVWXY.
  2. Each letter becomes its row number then its column number, so the top-left letter is 11. I and J share a cell.
  3. The key RUSSIAN in numbers: 14 51 21 21 32 15 41.
  4. Add the key numbers to the message numbers in turn, repeating the key: D 23 + 14 = 37; Y 55 + 51 = 106; N 41 + 21 = 62; A 15 + 21 = 36; M 35 + 32 = 67…

Using the Nihilist tool

There are two keys. The square key builds the 5x5 grid, and the key word is added to every number. Type a message to get numbers, or paste numbers in and switch direction to get the message back.

The sample is the example from Wikipedia. With the square ZEBRAS and the key RUSSIAN, "dynamite winter palace" begins 37 106 62.

How it works

Fill a 5x5 square with the square key, skipping repeated letters, then the rest of the alphabet. I and J share a cell. Each letter is now a two-digit number, its row then its column, so the letter in the top-left corner is 11.

Turn the key word into numbers the same way. Write those numbers over the message numbers, repeating the key, and add each pair. D is 23 in the ZEBRAS square and R is 14, so the first number is 37.

The sums are ordinary sums, so they can go over 100. To decode, take the key numbers away and read each result as a row and a column.

From Russian revolutionaries to Soviet spies

The cipher takes its name from the Russian Nihilists, who used it in the 1880s in their campaign against the tsarist regime.

Stronger versions lasted well into the 20th century. Max Clausen used one in Richard Sorge's spy network in Japan, and it was also used by the Lucy spy ring in Switzerland. Later Soviet versions added the digits without carrying, and the VIC cipher used by Reino Häyhänen in the 1950s grew out of the same idea.

Related conversions

The Polybius square is the first half of this cipher on its own. The bifid cipher uses the same square but splits the row and column digits apart instead of adding to them.

Questions

Why are some of the numbers over 100?

The original Nihilist cipher adds the numbers normally, carrying as usual. A letter numbered 55 plus a key letter numbered 55 makes 110.

What if I only know the key word?

You need both keys. Without the square key, try a plain alphabet square by leaving the square key empty.

How is the Nihilist cipher broken?

The sums give it away. Each sum is two two-digit numbers between 11 and 55 added together, which narrows the key numbers down fast, much like a Vigenère with a short key.

Sources

Added and reviewed . What's new