Autokey Cipher, polyalphabetic bir substitution cipher’dır. Vigenere cipher’la yakından ilişkilidir, ancak anahtarı oluşturmak için farklı bir yöntem kullanır. 1586’da Blaise de Vigenère tarafından icat edildi. Genel olarak, Vigenere cipher’dan daha güvenlidir.

\begin{rcases}
z_1=\mathcal{K} \\
z_i=x_{i-1}, i \ge 2 \\
\end{rcases} 

0\le z \le 25
e_z(x) = (x+z)(mod~26)\\
d_z(x) = (y-z)(mod~26)
Let's explain Example 1:

Given plain text is : H E L L O
Key is              : N H E L L

Let's encrypt:

Plain Text(P)       : H   E   L   L   O
Corresponding Number: 7   4   11  11  14     
Key(K)              : N   H   E   L   L
Corresponding Number: 13  7   4   11  11      
                    ---------------------
Applying the formula: 20  11  15  22  25  

Corresponding 
Letters are         : U    L   P   W   Z

Hence Ciphertext is: ULPWZ

Let's decrypt:

Cipher Text(C)      : U   L   P   W   Z
Key(K)              : N   H   E   L   L
                    ---------------------
Applying the formula: H   E   L   L   O

Hence Plaintext is: HELLO 

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *