Benedict Arnold used a book cipher to communicate with the British. The key was a legal textbook. Without the exact same edition, the code was unbreakable. Here is how the Ottendorf cipher works.
Benedict Arnold used a book cipher to communicate with the British during the American Revolution. The key was a legal textbook. Without the exact same edition, the code was unbreakable. The system worked so well that British Major John Andre carried Arnold's encrypted messages through American lines hidden in his boot.
The Ottendorf cipher, also called a three-part book cipher, uses a shared text as the key. Each word in the plaintext is replaced by three numbers that point to its location in the book. The security depends entirely on the secrecy of the book, not on any mathematical operation.
You can encode and decode with the Ottendorf cipher tool using any reference text as the key.
The Ottendorf cipher replaces each plaintext word with a group of three numbers. The most common format is page-line-word: the first number identifies the page, the second identifies the line on that page, and the third identifies the word in that line.
For example, the ciphertext group "47-3-12" means: go to page 47, find line 3, and take the 12th word. Another format is line-word-letter, where the three numbers specify a line, a word within that line, and a letter within that word. This variant encodes individual letters rather than whole words.
A message encoded with page-line-word might look like:
``
47-3-12 12-1-5 89-7-3 203-2-8 47-3-12
``
Each group points to a word in the shared book. The recipient looks up each group, writes down the corresponding word, and reconstructs the message.
The book cipher tool implements this system with any text you provide as the reference. The Ottendorf cipher tool adds support for both page-line-word and line-word-letter formats.
In 1780, Benedict Arnold was the American commander of West Point. He was secretly negotiating to surrender the fort to the British. To communicate with his British handler, Major John Andre, Arnold used a book cipher based on William Blackstone's Commentaries on the Laws of England.
Arnold and Andre each had a copy of the same edition of Blackstone's Commentaries. Arnold encoded his messages as sequences of page-line-word references. The numbers meant nothing without the book. Even if the Americans intercepted the message, they would see only a list of numbers.
The system failed not because of the cipher but because of operational errors. Andre was captured on September 23, 1780, by American militiamen near Tarrytown, New York. He was carrying the cipher messages hidden in his boot, along with plans for West Point. The Americans found the papers but could not immediately decode them without knowing the book. However, the circumstantial evidence was enough to convict Andre of espionage. He was hanged on October 2, 1780.
Arnold escaped to British lines before he could be arrested. The book cipher itself had worked as designed. The failure was in the courier, not the cryptography. The Wikipedia article on book ciphers covers this and other historical uses.
To encode a message with the Ottendorf cipher:
1. Choose a reference book. Both sender and recipient must have the exact same edition. Different editions have different pagination, line breaks, and even word choices, which would make the references point to wrong words.
2. For each word in your plaintext, find that word in the reference book and record its location as page-line-word.
3. Send the sequence of three-number groups.
To decode:
1. Look up each group in your copy of the reference book.
2. Write down the word at the specified location.
3. Read the reconstructed message.
The encoding process has a weakness: you must find each plaintext word in the reference book. If the book does not contain a word you need, you must spell it out letter by letter using line-word-letter references. This makes encoding slow and limits the vocabulary to words that appear in the chosen book.
The Ottendorf cipher tool automates this process. You provide the reference text and the plaintext, and the tool finds each word and generates the coordinate groups.
Strength: The Ottendorf cipher is computationally unbreakable without the reference book. The numbers are meaningless without the key text. Unlike substitution ciphers, there is no frequency distribution to analyze. The number 47-3-12 could refer to any word in any book. The security is information-theoretic, similar to a one-time pad, as long as the book remains secret.
Weakness 1: Key distribution: Both parties must have the same edition of the same book. This is the same key distribution problem that makes the one-time pad impractical. If the enemy captures the book, the cipher is broken. If the editions differ, the messages are garbled.
Weakness 2: Word availability: The reference book must contain all the words you want to encode. A specialized text like Blackstone's Commentaries contains legal vocabulary but may lack common words. Missing words must be spelled out, which triples the message length and creates a recognizable pattern.
Weakness 3: Pattern leakage: If the same plaintext word appears multiple times, it may be encoded as different coordinate groups (using different occurrences in the book) or as the same group (using the same occurrence). Reusing the same group is a pattern leak. Using different groups for the same word is better but requires finding multiple occurrences.
Weakness 4: Book identification: If the enemy guesses the book (common books are obvious candidates), they can test it quickly. The cipher is only as strong as the obscurity of the book choice.
CTF challenges: Book ciphers appear in CTF competitions, usually with the reference text provided as part of the challenge. The solver writes a script to look up each coordinate group and reconstruct the message. The cipher identifier can recognize book cipher patterns (groups of two or three numbers) but cannot identify the reference text.
Popular culture: The Ottendorf cipher features prominently in the 2004 film National Treasure, where the protagonists decode a message hidden on the back of the Declaration of Independence using the Silence Dogood letters as the reference text. The film takes liberties with the cipher's mechanics but accurately portrays the key principle: the numbers are meaningless without the right reference text.
Practical security: The Ottendorf cipher is theoretically secure but practically cumbersome. Modern alternatives like AES-GCM provide stronger security with simpler key management. The block cipher tool demonstrates modern authenticated encryption that does not require sharing a physical book.
The running key cipher is a related construction that uses a long text passage as a Vigenere-style key instead of coordinate references. It shares the same key distribution problem but uses modular addition instead of lookup.
The Ottendorf cipher is a three-part book cipher that replaces each plaintext word with three numbers representing its location in a shared reference text (typically page-line-word). Both sender and recipient must have the exact same edition of the book. Without the book, the numbers are meaningless.
In 1780, Benedict Arnold used a book cipher based on Blackstone's Commentaries on the Laws of England to communicate with British Major John Andre about surrendering West Point. Arnold encoded messages as page-line-word references. Andre was captured carrying the encoded messages in his boot, but the cipher itself was never broken. The failure was operational, not cryptographic.
Computationally, yes. Without the reference book, the numbers cannot be decoded. The security is information-theoretic, similar to a one-time pad. However, the cipher has practical weaknesses: key distribution (both parties need the same book edition), word availability (the book must contain all needed words), and book identification (common books are easy to guess).
The Ottendorf cipher is a specific type of book cipher that uses three-number groups (page-line-word or line-word-letter). Other book ciphers may use two numbers (page-word or line-word) or a single number (word position in the entire text). The Ottendorf variant is more precise because it uses three coordinates, reducing ambiguity.
Not by cryptanalysis alone. The numbers have no mathematical relationship to the plaintext. However, if you can guess the book (common books, religious texts, legal texts are likely candidates), you can test it quickly. The cipher's security depends on the obscurity of the book choice, which is a weak form of security.
Ottendorf Cipher (3-Part Book Cipher)
Encrypt and decrypt messages using three-number groups (line-word-letter or page-line-word) that reference positions in a shared text.
Book Cipher Tool
Encode and decode messages using position references to any text or book.
Code Identifier
Identify the cipher or encoding used in a piece of text. Paste encoded or encrypted data and the code identifier returns ranked candidates with confidence scores.
Running Key Cipher
Uses long text passages like book content as the encryption key for enhanced security.
The Difference Between Encoding, Encryption, and Hashing
Base64 is not encryption. This guide defines encoding, encryption, and hashing precisely, runs the same input through each, and explains when to use which in production systems.
How the Vigenere Cipher Works, and Why It Was Called Unbreakable
Understand how the Vigenere cipher uses a repeating key to defeat simple frequency analysis, and learn why the Kasiski examination breaks it anyway.