Professional Documents
Culture Documents
Encryption of 2 x 2 matrix
1 1
Hill Cipher cont’d
•Note
If three matrices are given, then take three characters at a time i.e.
where P=HELP then
P=HEL =
Hill Cipher cont’d
•Assignment
Encrypt and decrypt the following with the key using the same
method above
1. P = LPO
2. P = NYSC
3. P = INEC
4. P = FRSC
5. P= DATA
Hill Cipher cont’d
•Assignment
Encrypt and decrypt the following with the key using the same
method above
1. P = LPO
2. P = CPN
3. P = MBU
4. P= GLO
5. P = GOOD
Decryption of 2 x 2 matrix
•P=HELP,
, C= HI
Remember that the formula for encryption is
C= K.P mod 26
The formula for decryption is P=K-1C mod 26
The formula to find inverse of a matrix is
•
Hence,
Now substitute them into
We have:
√
26
2 6
√
52 52
17
20
Now we have
Decryption of 2 x 2 matrix
•Hence
d 26
mo