Vigenère cipher: try it yourself
Encryption and decryption exercises with the Vigenère cipher, with solutions.
Exercise 1: decrypt
This message was encrypted with the key ROME:
UCZSKHDYJHMTGSMVRBOIJWrite the repeated key under the ciphertext and shift each letter backwards by the value of the key letter (R = 17, O = 14, M = 12, E = 4).
Exercise 2: encrypt
Encrypt the word CRYPTOGRAPHY with the key MOON and check the result by decrypting it.
Exercise 3: observe
Encrypt AAAAAAAAAAAA with the key MOON. What do you get? Why does this immediately reveal the key?
Vigenère cipher: frequently asked questions
Short answers to the most common questions about the Vigenère cipher.
The pages of this topic
Back to the overviewVigenère cipher: history
From Alberti to Trithemius, from Bellaso to Vigenère: how the “indecipherable” cipher was born, why it bears the wrong name and how it was broken in the nineteenth century.
Vigenère cipher: how it works
How to encrypt and decrypt with the Vigenère cipher using the square table and the repeated keyword.
Vigenère cipher: worked example
Step-by-step encryption of the message “meet me at the bridge” with the key CIPHER, letter by letter.
Vigenère cipher: the maths
The formulas of the Vigenère cipher in modular arithmetic, the key space and why the repetition of the key is its weakness.
Vigenère cipher: weaknesses and attacks
The Kasiski method, Friedman’s index of coincidence and column-by-column frequency analysis: how the Vigenère cipher is broken.
The Vigenère cipher today
Where the Vigenère cipher is found today: teaching, games, puzzles, and the lessons it left to modern cryptography.