What the autokey cipher is
The autokey cipher works like the Vigenère cipher, with one change. The keyword is used only once, at the start. After it runs out, the key continues with the letters of the message itself. In the table under the tool, key letters taken from the message are marked so you can see where the keyword ends.
Decryption runs the same way in reverse. The keyword decrypts the first few letters, and those recovered letters then serve as the key for the letters further along.
Why it is stronger than Vigenère
The standard attack on Vigenère looks for the length of the repeating key. An autokey key never repeats, so index of coincidence tests and the Kasiski examination find nothing. That made the autokey cipher a real improvement when Blaise de Vigenère described it in 1586.
How it is broken
The key is made of the message, and the message is English, so the key is English too. An attacker guesses a common word such as THE, tries it at every position, and looks at the key letters that would produce the ciphertext there. Where the guess is right, those key letters are also readable text, and the message unravels from there. Short keywords give the attack more to work with.
Questions about the autokey cipher
How is the autokey cipher different from Vigenère?
Both shift each letter by a key letter. Vigenère repeats the keyword over and over. Autokey uses the keyword once and then continues the key with the message itself, so the key never repeats.
How do I decrypt an autokey cipher?
Choose Decode, paste the ciphertext and type the keyword. The first letters are decrypted with the keyword, and each recovered letter then becomes the key for a letter further on, so the decryption feeds itself.
Can the autokey cipher be broken without the key?
Yes, though not with the method used for Vigenère, because the key does not repeat. The usual attack guesses a likely word such as THE at many positions and checks whether the key letters it implies also read as English. Short keywords make this easier.
Who invented the autokey cipher?
Blaise de Vigenère described an autokey system in 1586. The repeating-key cipher that carries his name today was actually described earlier by Giovan Battista Bellaso.
Is my text sent to a server?
No. Encryption and decryption run in your browser with JavaScript, and nothing you type leaves your device.