Code
Classical and machine ciphers, from Caesar’s shift and the ACA’s 62 types to Enigma and Lorenz, and text as notes: enciphered with a key, chained, many broken without one.
Vigenère
Encrypts, decrypts and solves Vigenère, Beaufort, Autokey, Gronsfeld, Porta and the running key: periodic keys by chi-squared and quadgrams, a running key by Friedman's probable word (1918) or by reading key and message together on English 6-grams. An alphabet keyword keys the tableau (Quagmire III, as in Kryptos 1–2). Bellaso introduced the keyword in 1553; Vigenère's Traicté (1586) credits “un certain Belasio” and adds the autokey.
Terms
History, how it works, how it was checked, limits
History
Alberti described the first polyalphabetic cipher about 1467. Trithemius’s Polygraphia (1518) printed the first table of shifted alphabets, used a row a letter. The repeating keyword is Bellaso’s (1553); Vigenère’s Traicté des chiffres (1586) credits “un certain Belasio” and adds the autokey. In 1863 Union telegraphers read Johnston’s message to Vicksburg without the key; that year Kasiski showed how repeats give a key’s length. The U.S. Army keyed its cipher disk with a book’s text; Friedman’s Riverbank Publication No. 16 (1918) broke it, both texts being English.
How it works
Vigenère adds the key letter, C = P + K; an alphabet keyword builds the tableau on a mixed alphabet, the Quagmire III. Beaufort and the Army disk take C = K − P and undo themselves; Gronsfeld shifts by digits; Porta has 13 reciprocal alphabets; Autokey follows a primer with the plaintext; a running key is as long as the message; Trithemius takes the next row of his recta or aversa for each letter. The table is drawn letter by letter, each row enciphered by the cipher itself.
The search tries key lengths to 20, each column’s letter by chi-squared, improved on quadgrams; Autokey primers along their chains. A key counts only above the same search on its letters shuffled; each of its columns is drawn sliding against the language’s letters. For a running key, Probable word tries a word at every place, and the search reads key text and messages together on English 6-grams.
How it was checked
LEMON enciphers ATTACKATDAWN to LXFOPVEFRNHR. The solvers recover LEMON, FORTIFY, 31415, QUEEN and Porta’s SECQES from 217 letters of A Tale of Two Cities, and CIPHERS, PALIMPSEST and SECRET from 57 of the Declaration. Vicksburg and Kryptos 1 and 2 decrypt as published; on the plain tableau Kryptos 1 falls below its control. Riverbank No. 16’s ten messages encipher as printed and give back their key; its Army-disk messages, all thirty key letters. Trithemius’s two examples in his Clavis (1518) decipher, but for one misprinted letter. Every letter drawn crosses the table at the output’s letter, on every tab.
The tests hold 74 checks of this tool; 9 rest on outside material, the first eight here:
- … Kryptos part 2 on the plain tableau: no key reads at all
- … Johnston to Pemberton, 1863: MANCHESTERBLUFF reads above it
- Kryptos part 1 on the table of KRYPTOS (the Archive’s exhibit): the header is the keyed alphabet, row P begins P T O S
- A print’s own example Trithemius: his alphabet of 24 letters as the heads of his tables print it (Polygraphia, 1518, book V)
- A print’s own example Riverbank 16 (1918), pp. 2 and 5: all ten messages encipher as printed under ON THE OTHER HAND IN THE CASE OF
- A print’s own example The Army disk series (pp. 17, 19): each message deciphers under the key text as the pamphlet prints it
- A print’s own example Single messages on the disk (pp. 22–28): LOWNH ZKNIC JB and TOFFA NBPEW KYMOO as printed
- A print’s own example Griffing (2006), Fig. 2: STORE under TOTHE is LHHYI
The other 1, and every tool’s checks
Limits
The running key reads English alone; keys over 20 letters, primers over 12 and a keyed alphabet (Quagmire III) are not searched. Gronsfeld has no dictionary attack. A single running-key message comes back about two letters in three right on prose; on the Vigenère table nothing tells which text is the message. The table shows 40 letters.
- Paolo Bonavoglia, “Trithemius, Bellaso, Vigenère: Origins of the Polyalphabetic Ciphers”, Proceedings of HistoCrypt 2020, pp. 46–51
- David Kahn, The Codebreakers: The Story of Secret Writing (New York: Macmillan, 1967)
- [William F. Friedman], Methods for the Solution of Running-Key Ciphers, Riverbank Publication No. 16 (Geneva, Ill.: Riverbank Laboratories, 1918), Friedman’s own copy, George C. Marshall Foundation
- Alexander Griffing, “Solving the Running Key Cipher with the Viterbi Algorithm”, Cryptologia 30 (4), 2006, pp. 361–367