STATION 25 / FIELD MANUAL
← Back to crypto libraryVigenère
Polyalphabetic
Vigenère uses a repeating word to select a different Caesar shift at each position. A is a shift of zero, B a shift of one, and so on. This makes identical plaintext letters capable of producing different ciphertext letters.
How to recognise it
A repeating-key clue, recurring groups at regular distances, or weaker single-letter frequency peaks can suggest Vigenère. Short texts may not offer enough evidence. Knowing the algorithm does not identify the keyword.
Worked example: encrypt GARDEN with DOG
Repeat the keyword until it covers the message. Convert using A=0 through Z=25, then add each pair modulo 26 (keep the remainder after division by 26).
Plaintext G A R D E N
Values 6 0 17 3 4 13
Key D O G D O G
Key values 3 14 6 3 14 6
Sums 9 14 23 6 18 19
Ciphertext J O X G S T
- G + D means 6 + 3 = 9, giving J.
- Repeat that addition at every position, with DOG repeated as DOGDOG.
- The ciphertext is JOXGST.
Work backwards: decrypt JOXGST
Subtract the same key values: 9−3=6 (G), 14−14=0 (A), 23−6=17 (R), 6−3=3 (D), 18−14=4 (E), 19−6=13 (N). This recovers GARDEN. If a subtraction is negative, add 26 until it lies between 0 and 25.
Conventions and common mistakes
Repeat the keyword, not the plaintext: extending the key with plaintext would be Autokey. Decide whether punctuation consumes key positions; these examples remove spaces and punctuation first. The tabula recta provides the same operations without arithmetic.
Related methods
- Gronsfeld — Uses repeating digits rather than keyword letters.
- Autokey — Extends a seed with plaintext instead of repeating it.
- Beaufort — Changes the arithmetic to key minus plaintext.
Useful desk reference
Tabula recta — An alphabet table for encrypting and decrypting without numeric sums.