AUTOKEY CIPHER

952 2 0
                                    

AUTOKEY CIPHER

>An autokey cipher is a cipher that incorporates the message into the key. The key is generated from the message in some automated fashion, sometimes by selecting certain letters from the text or, more commonly, by adding a short primer key to the front of the message.

+ There are two forms of autokey cipher: key-autokey and text-autokey ciphers. A key-autokey cipher uses previous members of the keystream to determine the next element in the keystream. A text-autokey uses the previous message text to determine the next element in the keystream.

 A text-autokey uses the previous message text to determine the next element in the keystream

Oops! This image does not follow our content guidelines. To continue publishing, please remove it or upload a different image.

Example:

As an example we shall encode the plaintext "meet me at the corner" using the keyword king. First we must generate the keystream, which starts with the keyword, and then continues with the plaintext itself, getting kingmeetme....

 First we must generate the keystream, which starts with the keyword, and then continues with the plaintext itself, getting kingmeetme

Oops! This image does not follow our content guidelines. To continue publishing, please remove it or upload a different image.


The keystream in the Autokey CIpher starts with the keyword, and is then followed by the plaintext itself.

With the keystream generated, we use the Tabula Recta, just like for the Vigenère Cipher. We find K across the top, and M down the left side. The ciphertext letter is "W".

For the second letter, "e", we go to I across the top, and E down the left to get the ciphertext letter "M".

Continuing in this way we get the ciphertext "WMRZYIEMFLEVHYRGF".

The Tabula Recta is used in the same way as we used it for encrypting the Vigenère Cipher

Oops! This image does not follow our content guidelines. To continue publishing, please remove it or upload a different image.

The Tabula Recta is used in the same way as we used it for encrypting the Vigenère Cipher.

The Tabula Recta is used in the same way as we used it for encrypting the Vigenère Cipher

Oops! This image does not follow our content guidelines. To continue publishing, please remove it or upload a different image.


The plaintext, keystream and ciphertext generated using the Autokey Cipher.

Codes and Ciphers Where stories live. Discover now