A digraph cipher is a cipher in which each two block of letters of plaintext is replaced by a block of two letters of ciphertext.
Suppose that the most common digraph in English is followed closely by . Using a hill cipher system the two most common digraphs in the ciphertext message are and . We guess that and correspond to the two most common digraphs in the English text and .
Let .
If each plaintext block was enciphered using a Hill digraphic cipher described by where each is a ciphertext block, find the matrix modulo 26 and find the modulo 26 .
The answer should be modulo 26.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Let A be the 2 X 2 Matrix.
A ∗ ⎣ ⎡ 1 9 7 7 4 ⎦ ⎤ ≡ ⎣ ⎡ 1 7 7 1 3 8 ⎦ ⎤ m o d 2 6
Let B = ⎣ ⎡ 1 9 7 7 4 ⎦ ⎤ m o d 2 6
To find the B − 1 modulo 2 6 so that A ≡ ⎣ ⎡ 1 7 7 1 3 8 ⎦ ⎤ ∗ B − 1 m o d 2 6
C = B ∣ I = ⎣ ⎡ 1 9 7 7 4 1 0 0 1 ⎦ ⎤ m o d 2 6
R o w 1 + R o w 2 ⟹
C = ⎣ ⎡ 1 9 0 7 1 1 1 1 0 1 ⎦ ⎤ m o d 2 6
1 1 ∗ R o w 1 ⟹
C = ⎣ ⎡ 1 0 2 5 1 1 1 1 1 0 1 ⎦ ⎤ m o d 2 6
To avoid confusion Note: We wanted 1 9 j ≡ 1 m o d 2 6 ⟹ 1 9 j − 2 6 k = 1 .
Using the Euclidean algorithm repeatedly we obtain:
2 6 = 1 9 ∗ 1 + 7 , 1 9 = 7 ∗ 2 + 5 , 7 = 5 ∗ 1 + 2 , 5 = 2 ∗ 2 + 1 ⟹
1 = 5 − 2 ∗ ( 2 ) = 5 − ( 7 − 5 ) ∗ 2 = 5 ∗ 3 − 7 ∗ 2 = ( 1 9 − 7 ∗ ( 2 ) ) ∗ 3 − 7 ∗ 2 =
1 9 ∗ ( 3 ) − 7 ∗ ( 8 ) = 1 9 ∗ ( 3 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