Vigenère Autokey Cipher Encoder and Decoder
Enciphers or deciphers text with the classic autokey variant, where the plaintext extends the keyword instead of repeating it. Letters A to Z only.
Result
—
Vigenère autokey: the message becomes its own key
Ordinary Vigenère repeats the keyword until it covers the text, and that repetition is what Kasiski's method exploits. The autokey variant, proposed by Vigenère himself in the sixteenth century, removes the problem at the root: the key starts with the agreed word and continues with the plaintext itself. Since the message does not repeat, the periodic pattern disappears.
Enter the key and the text and choose the direction. When enciphering, the effective key is the word followed by the plaintext, truncated to the message length. Deciphering does something elegant: each recovered letter immediately joins the key to decipher the next, so the process feeds on what has already been solved — which is why deciphering must start at the beginning and run in order.
Resistance is greater than periodic Vigenère's, but it is not immune. The key becomes natural-language text, with all the statistical structure that carries, and attacks exist that exploit exactly that, testing probable stretches. Note too that a transmission error mid-message contaminates everything after it, since the key depends on the recovered text.
Frequently asked questions
Why does Kasiski fail here?
Is there a variant using the ciphertext as key?
What happens if I get a letter wrong?
Related Tools
Columnar Transposition Cipher
Encrypts or decrypts text by writing it in rows under a keyword and reading the columns in alphabetical key order, padding the last row with X.
Encrypt Text
Apply classic ciphers (Caesar, ROT13, Atbash) or Base64. Useful for puzzles, CTFs and testing — do not use for real security.
Vigenère Cipher
Encrypt and decrypt text with the polyalphabetic Vigenère cipher using a keyword. More robust than Caesar by using multiple shifts. Everything in your browser.
Baconian Cipher, 5-Bit A/B Groups
Encodes each letter as a group of five A and B symbols in Bacon's 24-letter alphabet, where I shares a code with J and U shares one with V.
Atbash Cipher Decoder
Decode and create messages in the Atbash cipher, which swaps each letter for its opposite in the alphabet (A↔Z, B↔Y). Shows the full map and the result.
Bifid Cipher with Custom Key
Encrypts text with the Bifid cipher using a 5x5 Polybius square built from your keyword, merging I and J and interleaving row and column coordinates.