Beaufort Cipher
The cipher that encrypts and decrypts with the same operation
Kasiski Examination · Index of Coincidence
Why This Matters
The Beaufort cipher is a Vigenère variant with an elegant reciprocal property: the same operation both encrypts and decrypts. Its reciprocal mapping simplifies the operator’s procedure while retaining the vulnerabilities of a repeating key.
Sir Francis Beaufort — famous for the Beaufort wind scale — devised a variant of the Vigenère cipher with an elegant property: the same operation encrypts and decrypts. Where Vigenère adds key to plaintext modulo 26, Beaufort subtracts plaintext from key. Because of this reciprocal property, you never need to switch between an encryption and decryption mode.
David Kahn describes a cipher card published under Beaufort’s name in 1857, after his death. His naval rank does not by itself establish Royal Navy operational adoption. Its weakness is identical to Vigenère's: the repeating key creates detectable periodicity.
The Beaufort cipher uses a tabula recta like Vigenère but with a different lookup direction:
Vigenère: C = (P + K) mod 26 Beaufort: C = (K - P + 26) mod 26 Key: S E C R E T Plain: H E L L O W Cipher: L A R G Q X
Because K − (K − P) = P modulo 26: Decrypt(C, K) = Encrypt(C, K). This simplifies the operation; it does not remove the need to distribute and protect the key.
The Beaufort cipher shares Vigenère's fatal flaw: the repeating key. Identical plaintext segments that align with identical key segments produce identical ciphertext. Repetition distances and index-of-coincidence tests can suggest a period. Language scoring can then rank key-letter candidates; short texts and accidental repetitions can mislead.
| Concept from Beaufort Cipher | Modern Evolution |
|---|---|
| Reciprocal operation (encrypt = decrypt) | Many binary stream ciphers use reciprocal XOR: A XOR B XOR B = A |
| Key-driven alphabet selection | A cryptographic stream generator derives a pseudorandom keystream from a secret key and its nonce/counter state |
| Repeating key weakness | Correct nonce/counter management prevents reusing the same keystream positions under a key; individual values can still recur |
| Exhibit | 9 of 172 |
| Era | Victorian · 1857 |
| Trust | Broken |
| Inventor | Admiral Sir Francis Beaufort |
| Year | 1857 |
| Key Type | Repeating keyword |
| Broken By | Kasiski Examination · Index of Coincidence |
Sources and Reading
Handbook of Applied Cryptography, Alfred J. Menezes, Paul C. van Oorschot and Scott A. Vanstone (1997), Example 7.54, p.241. The Codebreakers: The Comprehensive History of Secret Communication from Ancient Times to the Internet, David Kahn (revised edition, 1996), “The Contribution of the Dilettantes”: the 1857 Beaufort card.