STATION 25 / FIELD MANUAL

← Back to crypto library

Beaufort

Polyalphabetic

Beaufort uses a repeating keyword, but calculates key minus plaintext instead of adding them. It is reciprocal: the same operation decrypts a message when the same key is used.

How to recognise it

It can resemble other repeating-key alphabetic ciphers. A supplied tabula recta may need to be read differently from Vigenère. The name or subtraction instructions matter more than the ciphertext's appearance.

Worked example: encrypt CAT with DOG

Use A=0. At each position calculate key value minus plaintext value, wrapping modulo 26:

Plaintext        C   A   T
Plain values     2   0  19
Key              D   O   G
Key values       3  14   6
Key minus plain  1  14 -13
After wrapping   1  14  13
Ciphertext       B   O   N
  1. D−C = 3−2 = 1, so the first letter is B.
  2. O−A = 14, giving O.
  3. G−T = −13; add 26 to obtain 13, giving N. Result: BON.

Work backwards: decrypt BON

Compute DOG minus BON: 3−1=2 (C), 14−14=0 (A), 6−13+26=19 (T). The plaintext is CAT.

Conventions and common mistakes

Beaufort, variant Beaufort and Vigenère are different arithmetic rules. Here encryption and decryption both mean key minus input. Keep the subtraction order explicit, and repeat a short keyword until it covers all letters.

  • Vigenère — Compare key-minus-plaintext with addition.
  • Porta — Another reciprocal repeating-key cipher.

Useful desk reference

Alphabet positions — Use the A=0 row for modular arithmetic.

Support this project

Enjoying Advent of Cypher? If you'd like to support the project and help keep it running, you can make a small donation. Completely optional, always appreciated.