How the Beaufort cipher works
Number the letters A = 0 to Z = 25 and write the keyword repeatedly above the message, as with Vigenère. Then, for each position:
cipher = (key − plain) mod 26
With the key letter F (5) and the plain letter D (3), the cipher letter is 5 − 3 = 2, which is C.
Now try decrypting. Key F (5) minus cipher C (2) gives 3, which is D again. The same subtraction undoes itself. A cipher with this property is called reciprocal, and it was prized in practice: operators only had to learn one procedure, and a cipher machine only needed one setting.
How to break it
Exactly as you would break Vigenère. The keyword repeats, so every nth letter has been transformed the same way. Find the key length by testing which spacing produces English-like letter frequencies in each slice, then find each key letter in turn.
The breaker on this page does this for you. As always, it needs a message several times longer than the key.
Where it was used
Beaufort’s cipher was sold to the Victorian public on a printed card as a way to keep telegrams and postcards private. Its reciprocal design later made it a natural fit for machines: the Hagelin M-209, a portable mechanical cipher device carried by American forces in the Second World War, enciphered with a Beaufort-style subtraction.
Questions people ask
What is the difference between Beaufort and Vigenère?
Vigenère adds the key letter to the plain letter. Beaufort subtracts the plain letter from the key letter. That makes Beaufort reciprocal, so the same process encrypts and decrypts, whereas Vigenère needs a separate reverse step.
Is a Beaufort cipher harder to break than Vigenère?
No. It has exactly the same weakness, a repeating key, and falls to the same attack. Find the key length, then solve each position separately.
Who was Beaufort?
Rear Admiral Sir Francis Beaufort of the Royal Navy, better known for the Beaufort scale of wind force. The cipher was published after his death in 1857, though the method had been described earlier by Giovanni Sestri in 1710.