Professional Documents
Culture Documents
Autokey Cipher
Autokey Cipher
Presented By
Ali (2020-SE-33)
Hashar Ahmed (2020-SE-12)
History
• The Autokey Cipher is almost identical to the Vigenère Cipher – only it’s more secure.
• It was first invented by Girolamo Cardano and was made more secure by Vigenère(The Vigenère
cipher is a method of encrypting alphabetic text by using a series of different Caesar ciphers based on
the letters of a keyword )
• It is closely related to the Vigenère cipher but uses a different method of generating the key.
What is Autokey Cipher
• An autokey cipher (also known as the autoclave cipher) is a cipher that incorporates the
message (the plaintext) into the key.
• Autokey Cipher is a polyalphabetic substitution cipher.
• There are two forms of autokey ciphers.
1. Key Autokey Cipher
2. Text Autokey Cipher
Tabula Recta
• Keyword: KILT
• Plaintext: MEETATTHEFOUNTAIN
• Key: KILTMEETATTHEFOUN
• Ciphertext: WMPMMXXAEYHBRYOCA
Mathematically
Key Stream
Example
• Plaintext = HELLO
• Autokey = N
• Key will be: N H E L L
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Encryption
• Plain Text(P) : H E L L O
7 4 11 11 14
• Corresponding Number:
N H E L L
• Key(K) :
13 7 4 11 11 Ci = ( Pi + Ki ) Mod 26
• Corresponding Number:
20 11 15 22 25
• Applying the formula:
U L P W Z
• Cipher Text(C) : U L P W Z
• Corresponding Number: 20 11 15 22 25
• Key(K) : N H E L L Pi = ( Ci - Ki ) Mod 26
• Corresponding Number: 13 7 4 11 11
• https://www.geeksforgeeks.org/autokey-cipher-symmetric-ciphers
• https://youtu.be/-UgLXx-RIKE?si=UQBWNHgEsoGQeyRQ
• https://youtu.be/JsUHsrXl2cw?si=_Etm2POHz7MNyjTS