The Beaufort cipher is a classical polyalphabetic substitution cipher that uses a repeating keyword to transform text. Unlike the Vigenere cipher, each output letter is calculated from the key letter and the plaintext letter using a reversed relationship.
The most distinctive feature of the Beaufort cipher is its reciprocal nature. The same transformation is used for both encryption and decryption, which means the same keyword can process text in either direction.
Because the cipher changes substitutions based on the current key letter, it is more resistant to simple frequency analysis than monoalphabetic ciphers such as Caesar.