Decryption of Ciphertext 'HI' using Hill Cipher
Hill Cipher decryption requires multiplying the ciphertext vector by the inverse of the key matrix modulo 26.
Given
- Ciphertext: HI
- Key Matrix: K=[54β33β]
Step A: Convert Ciphertext to Numbers
- H = 7, I = 8
- Ciphertext vector: C=[78β]
Step B: Find the Inverse of Key Matrix (mod 26)
i. Calculate Determinant:
det(K)=(5Γ3)β(3Γ4)=15β12=3
ii. Find Multiplicative Inverse of det mod 26:
We need 3β1mod26, i.e., find x such that 3xβ‘1mod26
3Γ9=27β‘1mod26
So, 3β1mod26=9
iii. Find Adjugate Matrix:
adj(K)=[3β4ββ35β]
iv. Compute Inverse Matrix mod 26:
Kβ1=9Γ[3β4ββ35β]mod26
Kβ1=[27β36ββ2745β]mod26=[116β2519β]
Step C: Decrypt by Multiplying Kβ1ΓCmod26
P=[116β2519β]Γ[78β]mod26
P1β=(1Γ7)+(25Γ8)=7+200=207mod26=207β7(26)=207β182=25
P2β=(16Γ7)+(19Γ8)=112+152=264mod26=264β10(26)=264β260=4
Step D: Convert Numbers to Letters
Result
Plaintext=ZEβ