Lecture 10
Lecture 10
Lecture 10
The process of converting from cipher text to plain text is called deciphering.
The following example will explain the procedure for deciphering.
3 3
Example 6. Decipher the Cipher text = MOFZ for Key matrix = [ ].
2 5
Solution: Recall the formula which we used for enciphering
C = KP (mod 26)
Formula for deciphering
P = 𝐾 −1 𝐶(mod 26)
𝐴𝑑𝑗(𝐾)
𝐾 −1 = (mod 26)
det(𝐾)
Thus each plain text vector can be recovered from ciphertext vector by multiplying
it on the left by 𝐾 −1 (mod 26).
Step 1 First find 𝐾 −1 , so
3 3
det(K) = |𝐾| = | | = 15 − 6 = 9
2 5
5 −3
[ ] 5 −3
−1 −2 3
𝐾 = = 9−1 [ ]
9 −2 3
What is the inverse of 9 modulo 26? Let it be x, then 9x = 1(mod 26)
9.1 = 9 ≠ 1(mod26)
9.2 = 18 ≠ 1(mod26)
9.3 = 27 = 1(mod26)
Question 2.
4 1
Decode the following Hill 2-cipher which was enciphered by the matrix [ ]
3 2
SAKNOXAOJX
Question 3.
Decode the Hill 3-cipher LQVGKE which was enciphered by the matrix key
1 2 4
𝐾 = [0 −1 2 ]
0 1 −1
Important Note: