Encrypt and decrypt with a repeating-key polyalphabetic cipher, then paste ciphertext and let the full cryptanalytic pipeline — Kasiski examination, Index of Coincidence, Friedman test, chi-squared per column — recover the key. The attack that took 300 years to discover.
Vigenère was historically called "polyalphabetic" — each letter of the key chooses a different shift.
The Vigenère cipher was misnamed for Blaise de Vigenère, who described it in 1553. It uses a repeating key to apply a different Caesar shift to each letter of the plaintext. For 300 years it was considered unbreakable — "le chiffre indéchiffrable" — and cryptanalysts spent their careers trying.
The attack was published in 1863 by Friedrich Kasiski, a Prussian army officer who noticed that if the same trigram appears twice in the ciphertext, the distance between the two occurrences is usually a multiple of the key length. Computing GCDs of those distances reveals the key length. William Friedman later refined this into the Index of Coincidence test, which estimates key length from a single statistical measurement.
This tool implements the full attack. Paste any Vigenère ciphertext of ~200 characters or more and click Crack. You'll see the Kasiski trigram table, the IC curve for key lengths 1 through 20, the Friedman's κ_estimate, and finally the recovered key character-by-character with chi-squared scoring per column.
Why the cipher fails: the key repeats. As soon as you identify the key length K, you split the ciphertext into K Caesar-shift sub-ciphers and crack each one with frequency analysis. The polyalphabetic defense collapses under any ciphertext long enough to expose the periodicity.
Vigenère is the textbook example of a polyalphabetic cipher and the textbook example of why polyalphabetic ciphers fail. Running Kasiski by hand takes a day. Running it here takes a second, and you can see exactly what the attack does at each step.
Three hundred years of confidence, broken by one Prussian major. The story of Kasiski's attack is one of the most famous pivots in the history of secret communication. This tool lets you reproduce his reasoning on your own ciphertext.
The Index of Coincidence is a beautiful piece of math. It distinguishes English text from random text with a single number. Watching IC peak at the true key length is the moment "polyalphabetic cipher" stops being intimidating and starts being mechanical.