Gronsfeld Cipher
A Vigenère-style cipher restricted to numeric shifts from 0 to 9
Kasiski · Only 10 possible shifts per position
Why This Matters
The Gronsfeld cipher illustrates a persistent tension in cryptography: usability versus security. For a fixed key length, restricting each shift to 0–9 gives fewer possible keys than permitting 0–25. Whether digits are easier to remember depends on the chosen key and user.
The cipher traditionally attributed to Count Gronsfeld adapts the Vigenère cipher to use numeric keys instead of letter keys. A numeric keyword may be convenient for some users, but greater memorability is not an established property of every numeric key. The tradeoff: digits only give 10 possible shift values (0-9) instead of 26, dramatically weakening the cipher.
The Gronsfeld cipher illustrates a persistent tension in cryptography: usability versus security. A cipher that field operators can't remember correctly is useless — but a cipher that trades security for memorability may be worse than none.
Key: 3 1 4 1 5 3 1 4 Plain: A T T A C K A T Cipher: D U X B H N B X Formula: C = (P + digit) mod 26 Only 10 possible shifts per position (0-9)
Gronsfeld shares Vigenère's periodicity weakness, but with only 10 possible shift values per position, each column's key digit can be found by testing just 10 possibilities instead of 26. Period tests supply candidate lengths, and language evidence helps choose among the ten shifts; success and running time depend on the sample.
| Concept from Gronsfeld Cipher | Modern Evolution |
|---|---|
| Digit keys (0-9) | Key entropy matters: AES-256 uses 256-bit keys for 2²⁵⁶ possible values |
| Usability-security tradeoff | Password KDFs raise guessing cost; they do not create entropy absent from the password |
| Small effective alphabet | AES’s bijective 8-bit S-box maps 256 values; output frequencies still depend on its inputs |
| Exhibit | 11 of 172 |
| Era | 17th Century |
| Trust | Broken |
| Inventor | Traditionally attributed to Count Gronsfeld |
| Year | 17th-century tradition; exact invention date uncertain |
| Key Type | Numeric keyword (digits 0-9) |
| Broken By | Kasiski · Only 10 possible shifts per position |
Sources and Reading
The Codebreakers: The Comprehensive History of Secret Communication from Ancient Times to the Internet, David Kahn (revised edition, 1996), “The Professor, the Soldier, and the Man on Devil’s Island”: the traditional Count Gronsfeld attribution and numeric shifts.