Vigenère Cipher Encoder + Decoder
The Vigenère cipher uses a keyword to shift each letter by a different amount — much harder to break than Caesar (which uses a single shift). Designed in the 16th century, "broke" in the 19th. Still useful for puzzles, CTF challenges, and teaching cryptanalysis.
How to use the Vigenère Cipher Encoder + Decoder
Pick encrypt or decrypt. Type a key (letters only). Non-letter characters pass through unchanged. Case is preserved on output.
The keyed Caesar cipher
The Vigenère cipher is a polyalphabetic substitution: instead of shifting every letter by the same amount like a Caesar cipher, it uses a repeating keyword to vary the shift letter by letter. With the key LEMON, the first letter shifts by L's position in the alphabet, the second by E's, and so on, repeating the key as needed. Because the same plaintext letter maps to different ciphertext letters depending on its position, simple frequency analysis fails.
Devised in the 16th century, it kept its reputation as the indecipherable cipher until 19th-century methods — Kasiski examination and the index of coincidence — cracked it by finding the key length, then attacking each position as a Caesar cipher. Today it is a teaching staple and a CTF favourite rather than real security. This tool encrypts and decrypts, passing non-letters through and preserving case.
Common use cases
- Teaching cryptanalysis — show why a repeating key defeats naive frequency analysis but not Kasiski.
- Puzzles and CTFs — encode or solve a classic Vigenère step in a challenge.
- Historical curiosity — reproduce the cipher that resisted attack for centuries.
- Decoding with a known key — recover plaintext when you have the keyword.
- Comparing with Caesar — see how varying the shift per letter changes the output.