Commercial Telegraph Codebooks ABC, Bentley’s, Lieber’s · 1870s–1930s
Five letters of nonsense that meant “ship the cargo via Suez and reply with prices in pounds sterling”. The compression layer of the Victorian internet.
Public commercial codebooks reduce telegraph length and ambiguity; they do not inherently provide confidentiality.
Why This Matters
Commercial codebooks replaced frequently used business expressions with compact codewords to reduce telegraph charges. Formats and billing rules changed over time. A phrase could become a single code group, but a public book did not thereby provide secrecy.
Commercial codes included ABC, Lieber’s and Bentley’s. Kahn describes the 1903 international rules permitting pronounceable artificial words up to ten letters, and the subsequent combination of two five-letter groups within that allowance. Bentley’s Complete Phrase Code followed in 1906. A universal five-letter CVCVC tariff rule is therefore misleading.
Private codebooks and additional encipherment could obscure the codeword meanings. Their protection depended on access to the book, traffic patterns and the added cipher, not simply on whether a printed volume was labelled private.
In a one-part code, plaintext entries and their code groups follow corresponding orders, so one list can serve for both encoding and decoding. A two-part code breaks that correspondence: plaintext entries are ordered for encoding, but their assigned code groups are not in the same order. It therefore needs two lookup directions; historical layouts varied:
- A plain index listing every English word or phrase the codebook covers, in alphabetical order, each beside its codeword.
- A code index listing every codeword in alphabetical order, each beside its plaintext.
Why the order matters
| Plaintext, sorted | One-part code | Two-part code |
|---|---|---|
| ARRIVE | 1001 | 1003 |
| ATTACK | 1002 | 1001 |
| RETREAT | 1003 | 1002 |
If an analyst knows only that 1001 means ARRIVE and 1003 means RETREAT in the one-part example, the unknown entry 1002 must lie between those plaintext entries alphabetically. That narrows the possibilities; it does not by itself identify ATTACK. In the shuffled two-part example, code-group order no longer supplies that clue. Repeated groups, message context and a captured codebook remain weaknesses.
Reading: Encyclopedia of Cryptology, entries “One-Part Code” and “Two-Part Code,” pp. 202–203 and 281–282. The table is a teaching example, not a transcription of a historical codebook.
The museum’s CVCVC pattern uses 20 consonants (excluding Y) and five vowels, allowing 20³ × 5² = 200,000 combinations. If all 21 consonants were allowed, the count would be 231,525. Neither count is the number of entries in a particular historical book. Error-detecting designs restrict the vocabulary so that likely transmission errors are less likely to produce another valid codeword.
The demo above operates on a small fixed wordlist using exactly the CVCVC encoding scheme. Words not in the wordlist fall through to a per-letter codebook so the round-trip stays clean for arbitrary input.
Anyone with a copy of ABC or Bentley’s could read public-codebook traffic. Their job was compression and error-checking, not secrecy.
A fixed one-to-one phrase code preserves repeated groups and can expose relationships between messages. Known business context can help infer entries. The volume and type of traffic, use of alternatives and any super-encipherment affect how much can be recovered; no universal recovery time follows.
An additional cipher can protect codegroups, but it must be analysed on its own terms. Additive reuse can expose relationships, as in some military code systems. That analogy does not show that every private commercial code used the same construction or had the same weakness.
| Codebook lesson | Modern echo |
|---|---|
| Compression and encryption are separate functions | HPACK (HTTP/2) and QPACK (HTTP/3) compress fields. Shared compression state can create length-based leakage; compression is not encryption |
| Pronounceable codewords for telegram tariffs | BIP-39 mnemonic seed words for Bitcoin wallets |
| Checking distance between codewords | Hamming distance in modern error-correcting codes |
| Private codebook = monoalphabetic on the phrase alphabet | Repeated phrase groups can reveal structure; a large codebook alone does not prove security |
| Notable codebooks | ABC Code (1873), Bentley’s (1906), Lieber’s, Western Union |
| Codeword format | Varied; five-letter groups became important in the 20th century |
| Charged as | Dependent on tariff, date and codeword length |
| Use | Civilian commerce, shipping, banking, and insurance |
| Status | Mostly public; private codebooks added a confidentiality layer |
Sources and Reading
David Kahn, The Codebreakers: The Comprehensive History of Secret Communication from Ancient Times to the Internet, revised edition (1996), Chapter 22, “Rumrunners, Businessmen, and Makers of Non-secret Codes,” on commercial code formats, tariffs and Bentley. For the modern comparison: RFC 7541, §7.1, on length-based leakage and shared HPACK compression state.