Nihilist Cipher Encoder
Encodes text with the Nihilist cipher: every letter becomes its Polybius square coordinate, with I and J sharing a cell, added to a repeating numeric key.
Cifrado
—
Coordinates plus a repeating keyword
The Nihilist cipher came out of 19th century Russian political prisoners and still turns up in classical cryptography challenges. What confuses newcomers is the output: a run of numbers like 36 39 66 54 49, some of them above one hundred. There is nothing exotic going on. It is coordinate addition, and you can follow the arithmetic by hand without much effort.
Two conversions are chained. Message and key both go through the same 5x5 Polybius square with no J, where each letter becomes a two digit number, row in the tens place and column in the units: H is 23, C is 13. The key repeats cyclically across the message and the pairs are added, so 23 plus 13 gives 36. HELLO under the key CIPHER comes out as 36 39 66 54 49. Since the smallest sum is 11 plus 11 and the largest is 55 plus 55, every number lands between 22 and 110, which is the cipher's fingerprint.
The key keeps letters only: J becomes I and every other character is dropped, so CIPHER-2024 gives exactly the same result as CIPHER. The message loses spaces and punctuation too. This page encrypts only; to reverse it, subtract the key numbers and read each remainder as a row and a column. And like any cipher with a short repeating key, it gives way to Kasiski style analysis, so treat it as history homework rather than protection. It all runs in your browser.
Frequently asked questions
Why do some numbers have three digits?
Does the key have to match the message length?
Can I decrypt on this page?
Related Tools
Rail Fence Cipher
Encrypts messages with the Rail Fence (zigzag) cipher, spreading letters across N rails and reading rail by rail. A classic transposition cipher for learning cryptography.
Columnar Transposition Cipher
Encrypts or decrypts text by writing it in rows under a keyword and reading the columns in alphabetical key order, padding the last row with X.
Custom Polybius Square
Build a 5×5 Polybius square with a key letter and encrypt/decrypt messages using numeric coordinates.
Monoalphabetic Substitution Cipher
Encrypt/decrypt with a custom A-Z substitution key and show letter frequencies for didactic analysis.
Four-Square Cipher
Encrypts text two letters at a time using two keyword grids, with I and J sharing one cell and a trailing X padding an odd length. Encoding only.
Polybius Square Cipher
Encrypt and decrypt messages with the Polybius square, which turns each letter into a pair of digits on a 5×5 grid (with I and J combined).