Nihilist Cipher

Encrypt and decrypt text with the Nihilist cipher using a keyed Polybius square and a repeating additive key.

Input
0 chars · 0 bytes
Try:
Result
✓ Substitution via a keyed Polybius square ✓ Digits added with a repeating keyword ✓ We never store your messages ✓ Processed on our server
Examples
Encrypt with two keys
Key: ZEBRAS Additive key: ORBIT
Input DYNAMITE
Output 65 69 54 47 80 74 59 25

Square key ZEBRAS builds the 5×5 grid. The coordinates of additive key ORBIT are repeated and added to the message coordinates.

Decrypt with the same keys
Key: ZEBRAS Additive key: ORBIT
Input 65 69 54 47 80 74 59 25
Output DYNAMITE

Subtracting the repeated ORBIT coordinates with the same ZEBRAS square recovers DYNAMITE.

Encrypt a phrase with a repeating additive key
Key: GARDEN Additive key: COMET
Input MEET AT NOON
Output 57 50 49 59 56 67 56 69 50 65

Spaces are omitted. The five-letter additive key COMET repeats over the ten letters of MEET AT NOON.

Decrypt space-separated number groups
Key: GARDEN Additive key: COMET
Input 57 50 49 59 56 67 56 69 50 65
Output MEETATNOON

Enter the number groups with the same GARDEN square key and COMET additive key. The plaintext is returned without its original spaces.

How the Nihilist cipher works

The Nihilist cipher is a historical hand cipher associated with Russian revolutionary groups of the 1880s. It combines two ideas: a Polybius square rearranged by a square key, and a second, repeating additive key. The result is ciphertext written as space-separated number groups rather than letters.

To encrypt, the tool builds a square from the square key, placing its unique letters first and then the remaining letters of the selected alphabet. Each message letter becomes a coordinate: row followed by column, both counted from 1. The additive key is read from the same square, repeated as needed, and its coordinates are added to the message coordinates. To decrypt, the process is reversed: the additive-key coordinates are subtracted from each number group and the remaining coordinates are read from the square.

In the English and Italian 5×5 squares, I and J share a position, so an entered J is processed as I. The tool ignores spaces, punctuation, and other characters outside the selected alphabet when encrypting. Ciphertext can contain two- or three-digit groups, which must remain separated by spaces for reliable decryption.

Using the Nihilist Cipher tool

Choose Encrypt or Decrypt, enter the text, and provide both keys. The Square key determines the layout of the Polybius square. The Additive key supplies the repeating sequence of coordinates that is added during encryption or subtracted during decryption. Both keys must use characters from the chosen alphabet, and you need the same pair of keys to recover a message.

You can leave the alphabet on Auto for ordinary text: the tool detects a supported alphabet from the input and keys. When decrypting number-only ciphertext, Auto uses the keys to determine the alphabet. You can also select English, Russian, German, Spanish, French, Italian, Portuguese, or Turkish explicitly. After each successful operation, the tool displays the generated square and a step-by-step table with the message symbol, its coordinate, the current additive-key symbol and coordinate, and the resulting ciphertext group.

The Nihilist cipher is useful for learning about fractionation, keyed squares, and manual cryptography. It is not secure against modern cryptanalysis and should not be used to protect sensitive information.

FAQ

The square key mixes the Polybius grid, so letters map to unpredictable coordinates. The additive key then adds a repeating number stream on top, hiding letter frequencies. Both keys are needed to encrypt and decrypt.

Each plaintext coordinate (11–55) is added to a key coordinate (11–55), so a group can be as large as 110. That is why the groups have variable length and are separated by spaces.

In a classic 5×5 square there is room for only 25 letters, so I and J share one cell. When decrypting, that cell is shown as I. Other alphabets use a 6×6 or 7×7 square and keep every letter.

The square key changes the arrangement of letters in the Polybius square. The additive key is converted through that same square and repeated over the message as a stream of numbers. Changing either key changes the ciphertext, and both are required to decrypt it.

No. During encryption, the tool processes only characters belonging to the selected alphabet; spaces, punctuation, and unsupported characters are omitted. The decrypted result is returned as uninterrupted capital letters, so add word spacing yourself if you need it.

Yes. The tool supports English, Russian, German, Spanish, French, Italian, Portuguese, and Turkish. Its square size and character set adapt to the selected alphabet. In Auto mode, the tool detects a supported alphabet from the text and keys; for numeric ciphertext, it uses the keys.

Check that you selected the same alphabet and entered exactly the same square key and additive key used for encryption. Keep every ciphertext number group, separated by spaces. A wrong key, a missing group, or a changed group produces different coordinates and prevents correct recovery.

No. It was designed for manual use and is now a historical and educational cipher. Modern analysis can exploit the repeated key and the structure of the number groups, so use modern authenticated encryption for private or sensitive communication.
Related tools

Caesar Cipher

Classic letter-shift cipher with custom shift values.

XOR Cipher

Online XOR encryption and decryption with text or hex keys.

Playfair Cipher

Classic digraph substitution cipher with keyword matrix encryption.