Exhibit 09 of 172 Victorian · 1857

Beaufort Cipher

The cipher that encrypts and decrypts with the same operation

Kasiski Examination · Index of Coincidence

InventorAdmiral Sir Francis Beaufort
Year1857
Key TypeRepeating keyword
Broken ByKasiski Examination · Index of Coincidence
Modern LessonSymmetric operations in stream ciphers

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.

Historical Context

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.

How It Works

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.

VIGENÈRE C = (P + K) mod 26 BEAUFORT C = (K − P) mod 26 ★ Beaufort is reciprocal: Enc(P) = Dec(C) with same key Key=S Plain=H → C = (S−H) = (18−7) = 11 = L | C=L → P = (S−L) = (18−11) = 7 = H ✓
Subtraction instead of addition makes Beaufort self-inverse — encryption and decryption are the same operation
How It Was Broken
Kasiski Examination
Complexity: Moderate

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.

What It Teaches Modern Cryptography
Concept from Beaufort CipherModern Evolution
Reciprocal operation (encrypt = decrypt)Many binary stream ciphers use reciprocal XOR: A XOR B XOR B = A
Key-driven alphabet selectionA cryptographic stream generator derives a pseudorandom keystream from a secret key and its nonce/counter state
Repeating key weaknessCorrect nonce/counter management prevents reusing the same keystream positions under a key; individual values can still recur
Quick Facts
Exhibit9 of 172
EraVictorian · 1857
TrustBroken
InventorAdmiral Sir Francis Beaufort
Year1857
Key TypeRepeating keyword
Broken ByKasiski 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.

← Previous Running Key Cipher