Documente Academic
Documente Profesional
Documente Cultură
Prerequisite:
Review Hill Cipher and Matrix operations from contact session slides thoroughly.
Detailed Example:
(audience is encouraged to solve it and compare the results side by side):
Matrix Determinant in modulo-26 form for the Hill Cipher Key (K):
K=
q n1 n2 r t1 t2 t
1 26 23 3 0 1 -1
7 23 3 2 1 -1 8
1 3 2 1 -1 8 -9
2 2 1 0 8 -9 26
1 0 -9 26
t = t1-q.t2
P=
C = P.K mod 26
= x mod 26
= mod 26
= mod 26
Where,
Dji = Determinant of the matrix deleting jth row and ith column.
[A-1]ij = 17.(-1)i+j
= 17.(-1)i+j
= 17
P = C.K-1 mod 26
= x mod 26
= mod 26
Which is same as the plaintext code and yields the decrypted text as "paymoremoney".
Practice Exercise
Using Hill Cipher, encrypt the plaintext codeisready using the key (K) as given below and
verify your answer decrypting it after finding out the multiplicative inverse of K. You can use
dummy character z as padding if required.
K=