cyberchef_vigenere_break
Recover a Vigenère key from ciphertext alone when the key is unknown. Identifies key length, solves candidates with trigram scoring, and returns decrypted text.
Instructions
Recover a Vigenere key from ciphertext alone. Vigenère Decode requires the key and no operation finds one. The index of coincidence per coset is used as a FILTER, not a judge — every multiple of the true length scores as well or better, which is the standard way this goes wrong — so a shortlist of lengths is solved in full and the plaintext's trigram score decides. Runners-up are reported per position, because a close second is where the answer is wrong. Exact key in 9 of 10 measured cases, and it reported its own failure on the tenth rather than a wrong key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The ciphertext. Non-letters are ignored and restored in the output. | |
| key_length | No | Skip the search and use this length. | |
| max_key_length | No | Longest key length to consider. | |
| preview_letters | No | How much decrypted text to return. 0 for none. |