The Nihilist Substitution Cipher is a classical encryption method that combines a Polybius square with a numeric additive key to produce a numeric ciphertext. It was historically used for its simplicity in encoding messages into numbers while maintaining a level of secrecy. Each letter of the plaintext is converted into a two-digit number via a Polybius square and then offset by a numeric key to generate the final ciphertext.
This cipher relies on a keyword to construct a keyed Polybius square. A numeric key is then applied to shift the resulting numeric values. This process ensures that repeated letters in the plaintext may result in different numbers in the ciphertext, adding a layer of security against simple frequency analysis.
Nihilist Substitution Cipher: Encoding
To encrypt using the Nihilist Substitution Cipher, follow these steps:
Plaintext: HELLONIHILIST
Keyword: KEYWORD
Numeric Key: 31425
Step 1: Normalize plaintext
HELLONIHILIST → HELLONIHILIST
Step 2: Construct Polybius square using keyword
Assign letters to a 5x5 grid, combining I/J if necessary, using keyword first:
K E Y W O
R D A B C
F G H I L
M N P Q S
T U V X Z
Step 3: Convert each plaintext letter to its two-digit Polybius coordinate
H → 36
E → 13
L → 45
L → 43
O → 20
N → 46
I → 35
H → 37
I → 36
L → 46
I → 37
S → 52
T → 56
Step 4: Apply numeric key (repeated) via addition modulo 10
Numeric Key: 3 1 4 2 5 ...
36134543204635373646375256
Ciphertext:
36134543204635373646375256Nihilist Substitution Cipher: Decoding
Decoding requires the same keyword and numeric key. The numeric key is subtracted from each numeric pair (modulo 10 if necessary), then mapped back through the Polybius square to recover the original plaintext:
Ciphertext: 36134543204635373646375256
Keyword: KEYWORD
Numeric Key: 31425
Step 1: Subtract numeric key from ciphertext pairs
Step 2: Map resulting numbers to letters using Polybius square
Plaintext:
HELLONIHILISTAccuracy depends on using the exact same keyword and numeric key as used during encryption. Any deviation in the Polybius square construction or key application will produce an incorrect plaintext.
Nihilist Substitution Cipher: Notes
Key characteristics of the Nihilist Substitution Cipher include:
- Type: Numeric polyalphabetic substitution
- Key: Keyword for Polybius square + numeric additive key
- Padding: Not required; plaintext length determines numeric output length
- Strengths: Obfuscates letter frequencies by numeric conversion and additive key
- Weaknesses: Vulnerable if Polybius square or numeric key is known; simple cryptanalysis can reveal patterns in short messages
The Nihilist Substitution Cipher demonstrates how combining letter-to-number conversion with an additive key can create a simple yet effective numeric cipher. It is historically notable for its use in clandestine messaging and as an educational tool for understanding polyalphabetic numeric encryption.