Beaufort Cipher
The cipher that encrypts and decrypts with the same operation
Why This Matters
The Beaufort cipher is a Vigenère variant with an elegant reciprocal property: the same operation both encrypts and decrypts. Used by the Royal Navy, it demonstrated that cipher design could prioritize operational simplicity without adding new vulnerability.
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.
Beaufort's cipher was used by the British Royal Navy and represents one of the cleaner historical cipher designs. 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: K A R G A N
Because subtraction is its own inverse: Decrypt(C, K) = Encrypt(C, K). This makes key management simpler — operators only need one table.
The Beaufort cipher shares Vigenère's fatal flaw: the repeating key. Identical plaintext segments that align with identical key segments produce identical ciphertext. Kasiski's method finds the key length; Index of Coincidence confirms it; frequency analysis recovers each key letter.
| Concept from Beaufort Cipher | Modern Evolution |
|---|---|
| Reciprocal operation (encrypt = decrypt) | XOR: the foundation of all modern stream ciphers (A XOR B XOR B = A) |
| Key-driven alphabet selection | PRNG keystream: cryptographically random key material per position |
| Repeating key weakness | Modern ciphers use nonce + counter to ensure keystream never repeats |
| Exhibit | 08 of 37 |
| Era | Victorian · 1857 |
| Security | Broken |
| Inventor | Admiral Sir Francis Beaufort |
| Year | 1857 |
| Key Type | Repeating keyword |
| Broken By | Kasiski Examination · Index of Coincidence |