Beaufort explained in plain terms means understanding a cipher that runs backwards, a 19th-century design that encrypts by subtracting the message from the key instead of adding them together. The central question is why anyone would reverse the arithmetic of the famous Vigenère cipher, and the answer is that the reversal makes encryption and decryption the same operation, so a single table does both jobs, and that elegance is the whole point of the design.
The Beaufort cipher is a polyalphabetic substitution cipher named after Sir Francis Beaufort, the Royal Navy officer who described it, and it works from a table much like the one Vigenère used. It turns a message into ciphertext with a repeating keyword, and it is built on subtraction modulo 26, which means each letter is found by taking the key letter minus the message letter, and that single change is what sets it apart from its better-known cousin.
This article explains what Beaufort is, how it works, and where it runs in the real world.
Key takeaways
- Beaufort is a polyalphabetic cipher named after Sir Francis Beaufort.
- It encrypts by subtracting the plaintext from the key.
- Encryption and decryption use the same operation.
- It needs a repeating keyword, like Vigenère.
- It is used in teaching and in cipher history today.
What Beaufort is
Beaufort is a cipher that turns a message into ciphertext by subtraction, and that arithmetic is what makes it unusual among classical ciphers. A sender picks a keyword and repeats it across the message, then for each letter subtracts the message letter from the key letter, which means the same keyword letter always encrypts the same plaintext letter in the same way, and that regularity is what keeps the cipher simple to use.
Its signature feature is reciprocity. Most ciphers need one rule to encrypt and another to decrypt, but Beaufort uses the same subtraction both ways, which means a message encrypted twice with the same key comes back as plaintext, and because the operation is its own inverse, the cipher needs only one table and one rule.
The design was a reaction to the Vigenère cipher of the 16th century. Vigenère added the key to the message, and Beaufort reversed the operation, so the two ciphers are mirror images of each other, because a cipher family that had only ever added letters finally had a version that subtracted them, and that symmetry is what made Beaufort worth naming.
It became one of the best-known classical ciphers in the world, and it is named in every history of cryptography. Beaufort appears in textbooks beside Vigenère, it is taught in cipher courses as the reciprocal alternative, and it is still the first example students meet when they learn that a cipher can be its own inverse, which means the design survives as a lesson even though nobody uses it for real secrets.
Its most famous property is the variant that bears its name the other way round. The variant Beaufort cipher subtracts the key from the plaintext instead, which means it encrypts like Vigenère in reverse, and because the two variants are easy to confuse, textbooks warn readers to check which subtraction a given table uses before they trust it.
Our guide to Vigenère explains the cipher Beaufort mirrors, and our guide to Playfair explains another 19th-century cipher built on a table.
How Beaufort works
Everything starts with the keyword, which the sender repeats until it matches the message length. Beaufort writes the key above the plaintext, letter by letter, which means every message letter has a key letter above it, and because the key repeats, a long message cycles through the same short key again and again.
Each letter begins with the subtraction, which is done modulo 26. The sender takes the key letter’s position, subtracts the plaintext letter’s position, and wraps around the alphabet when the result goes below A, which means the arithmetic never leaves the alphabet, and because the wrap is the only complication, the whole cipher fits in a single table.
The table is what makes the design work as a whole. Beaufort’s tabula recta lists every key letter down the side and every plaintext letter across the top, and the ciphertext letter sits where the row and column meet, which means a user needs no arithmetic at all, and because the table is symmetric, the same cell serves encryption and decryption alike.
The repetition spreads the effect further. Because the keyword repeats, the same plaintext letter encrypts differently under different key letters, which means simple frequency analysis fails, and because the key is short, the pattern of repetition is the cipher’s weak point, exactly as it is for Vigenère.
The reciprocal property is what keeps the design elegant. Decrypting a Beaufort message means subtracting the ciphertext from the same key, which is the same operation as encrypting, which means the recipient uses the identical table and the identical rule, and because there is nothing new to learn, the cipher is easy to teach and easy to remember.
The ciphertext comes from the table, read out letter by letter in order. Beaufort outputs one ciphertext letter per plaintext letter, which means the message keeps its length, and that fixed length is exactly what a classical cipher was expected to preserve.

Comparing Beaufort with other classical ciphers
Beaufort is one of several classical ciphers built on tables, and each was built with a different emphasis. Vigenère is the famous addition cipher with a repeating key, the variant Beaufort subtracts the key from the plaintext instead, and Beaufort is the one that subtracts the plaintext from the key and decrypts with the same rule, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | Beaufort | Vigenère | Variant Beaufort |
|---|---|---|---|
| Operation | Key minus plaintext | Plaintext plus key | Plaintext minus key |
| Reciprocal | Yes | No | No |
| Key | Repeating keyword | Repeating keyword | Repeating keyword |
| Year | 19th century | 16th century | 19th century |
| Best for | Teaching reciprocity | General classical use | Teaching variants |
The practical result is that Beaufort is the right choice for teaching reciprocity, Vigenère suits general classical use, and variant Beaufort fits teaching variants instead.
Where Beaufort is used
Teaching uses it as the reciprocal example. Cryptography courses introduce Beaufort when they explain that a cipher can be its own inverse, because it is the clearest case of the idea in a classical design, and a student who understands Beaufort understands why symmetry matters in cipher design.
Puzzle books use it to vary the challenge. A puzzle that uses Beaufort instead of Vigenère forces the solver to check the direction of the subtraction, because the two ciphers look alike but behave differently, and that small trap is the reason puzzle setters reach for it.
History uses it to tell the story of the 19th century. The naming of a cipher after a naval officer shows how cryptography had become a subject for gentlemen and officers, and Beaufort is remembered wherever that story is told, which means it survives as history as well as a working cipher.
Software libraries use it as a test case. A library that implements classical ciphers usually includes Beaufort beside Vigenère, because the two share a table and a key schedule, and that pairing is the reason the cipher still appears in modern code.
Amateur cryptographers use it for fun. Hobbyists who enjoy hand ciphers pick Beaufort when they want something a little different from Vigenère, because the reversed arithmetic feels fresh, and that novelty is the reason it still appears in cipher challenges.
Strengths and limits
The greatest strength of Beaufort is its reciprocity. A cipher that decrypts with the same rule it encrypts with needs only one table and one explanation, and that simplicity is real, measured in the centuries of teaching and confirmed by the students who learn it in a single sitting.
It is also a strength that the design is built from familiar parts. A repeating keyword and a table are easy to explain and easy to use by hand, and that simplicity is worth more than cleverness in a field where a cipher nobody can use by hand is a cipher nobody remembers.
The limits are real, though, and the biggest is that it is no stronger than Vigenère. A repeating key leaks its length to Kasiski examination, which means Beaufort falls to the same attacks, and a system that needs real security must use a modern cipher instead.
Beaufort checklist
- Use Beaufort for teaching and puzzles, never for real secrets.
- Remember it subtracts the plaintext from the key.
- Check whether a table is Beaufort or variant Beaufort first.
- Compare it with Vigenère to see the mirror-image design.
- Note encryption and decryption use the same operation.
- Keep the keyword secret, even though the cipher is weak.
- Try a short keyword to see the repetition pattern.
- Never rely on a repeating key for anything important.
- Choose a modern cipher for any message that matters today.
Frequently asked questions
What is Beaufort in simple terms?
It is a 19th-century polyalphabetic cipher that encrypts by subtracting each message letter from the matching key letter, so the same rule encrypts and decrypts.
Who was Beaufort?
Sir Francis Beaufort, a Royal Navy officer and hydrographer best known for the Beaufort wind scale, after whom the cipher was named.
How is Beaufort different from Vigenère?
Both use a repeating keyword and a table, but Vigenère adds the key to the message while Beaufort subtracts the message from the key, and Beaufort decrypts with the same operation.
Is Beaufort still secure?
No, it is exactly as weak as Vigenère, a repeating key leaks its length, so it is only safe for teaching, puzzles and history.
Where is Beaufort used?
In cryptography courses, in puzzle books, in cipher software libraries, and in the history of classical ciphers.
When should I use Beaufort?
When you teach reciprocal ciphers, when you set a puzzle, or when you want the mirror image of Vigenère.
The bottom line
Beaufort explained in one line is this: the backwards cipher, a 19th-century design that subtracted where Vigenère added and proved that encryption and decryption could be the same act.
It is proof that a small change in arithmetic can make a new cipher, and the reason it still matters is that every classical cipher taught since has been judged partly by the lesson Beaufort taught.
This article is general information about how Beaufort works, not advice about choosing encryption for a particular device or system.







