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.
Book Cipher
Encodes and decodes by positions in a reference text — line and word, line and character, page, line and word, or word number to initial letter, the scheme of The Beale Papers (1885) — or by a code table, a nomenclator such as Louis XIV’s Great Cipher of 1691, whose table Bazeries rebuilt (1893): numbers for letters, syllables and words, several for the commonest. The Cipher Archive opens both here.
Terms
History, how it works, how it was checked, limits
History
A book cipher keys a message to a text both sides hold, a number naming a word or its place. The Beale Papers (Lynchburg, 1885) print three number ciphers; no. 2 numbers the words of the Declaration of Independence and takes the first letter of each. A code table, or nomenclator, gives numbers for letters, syllables, words and names, several for the commonest, with nulls among them. Commandant Bazeries rebuilt Louis XIV’s Great Cipher of 1691, 587 groups, from Catinat’s dispatches, starting from his guess at “les ennemis”, and printed it in Le Masque de fer (1893).
How it works
Line:Word, Line:Char and Page:Line:Word count lines, words or characters in the reference text (pages split by === or ---) and encode each word or letter at its first place there, case, accents and stops aside. By first letter, the words of the whole text are numbered from 1, and a recurring letter takes the next word with it. A code table is an entry a line, a number and what it stands for; a value in parentheses is a note, read as “·”, » a group not yet read. Decoding gives each group its value and keeps the words between; a number is a group only beside other groups or in the table, so a date in clear stays a date. Encoding takes the longest value that fits, accents and spaces aside, a value’s numbers in turn. The book is the key: nothing typed is kept.
How it was checked
Beale no. 2’s 762 numbers, read with the pamphlet’s Declaration as it numbers it, begin “I have deposited in the county of Bedford” and follow the pamphlet’s translation for at least 650 letters. Bazeries’s table was transcribed from the scan and checked against his table for enciphering; read with it, his own examples come out as he printed them, and the dispatch of 19 August 1691, 1,260 groups, gives the War Archives’ text but for seven spellings of the cipher clerk’s. A text encoded with a table reads back, as with the other four schemes.
The tests hold 11 checks of this tool; 2 rest on outside material:
- Beale no. 2 begins “I have deposited in the county of Bedford”
- Great Cipher: read with the table, it is the War Archives’ text but for seven spellings
Limits
The line and character schemes give a repeated word one place, which shows. Decoding with a table cannot choose between the letters one group stood for (i-j, u-v), nor apply a group that cancels the one before. Bazeries’s table leaves 91 groups unread; 330, “masque”, rests on its one occurrence. Encoding adds no nulls; his table has no K or W.
- The Beale Papers (Lynchburg: J. B. Ward, 1885) — Wikisource transcription
- Émile Burgaud and Commandant Bazeries, Le Masque de fer : révélation de la correspondance chiffrée de Louis XIV (Paris: Firmin-Didot, 1893), Annexe — scan, Klaus Schmeh
- David Kahn, The Codebreakers: The Story of Secret Writing (New York: Macmillan, 1967)