Given the matrix A = ∣ ∣ ∣ ∣ 4 1 5 2 ∣ ∣ ∣ ∣ m o d 2 6 , use a Hill cipher to decipher the message R Q T I C O D E W W M G H I using modulo 26, where A → 0 , B → 1 , … , Z → 2 5 , and enter the result as a string of integers.
What does the deciphered message state?
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.
My approach was the same as Rocco, except for two things.
First off, I wasn't sure whether the given matrix was the enciphering matrix or deciphering matrix. I tried it as the deciphering matrix and got the first two letters SX which seemed unlikely.
So we need to find the inverse matrix - but with integers and mod 26. I wasn't sure how to do this so took a different approach.
I worked out the inverse matrix (in my view more conventionally?) as:
3 1 [ 2 − 1 − 5 4 ] .
This means that [ 4 1 5 2 ] [ 2 − 1 − 5 4 ] = [ 3 0 0 3 ] .
Now, as 3 × 9 = 2 7 = 1 m o d 2 6 , we can calculate:
9 × [ 2 − 1 − 5 4 ] = [ 1 8 − 9 − 4 5 3 6 ] = [ 1 8 1 7 7 1 0 ] m o d 2 6 .
From here, I proceeded as Rocco did...
Problem Loading...
Note Loading...
Set Loading...
Note: det ( A ) = 3 and g cd ( 3 , 2 6 ) = 1 , so for each block X j the system A ∗ X j = B j m o d 2 6 has a unique solution, where ( 1 < = j < = 7 ) .
Using seven blocks for R Q T I C O D E W W M G H I we obtain:
1 7 1 6
1 9 8
2 1 4
3 4
2 2 2 2
1 2 6
7 8
A ∗ X j = B j ⟹ X j = A − 1 ∗ B j
C = A ∣ I = ⎣ ⎡ 4 1 5 2 1 0 0 1 ⎦ ⎤ m o d 2 6
Using the row operation: R o w 1 ↔ R o w 2 ⟹
C = ⎣ ⎡ 1 4 2 5 0 1 1 0 ⎦ ⎤ m o d 2 6
Using the row operation: 2 2 ∗ R o w 1 + R o w 2 ⟹
C = ⎣ ⎡ 1 0 2 2 3 0 1 1 2 2 ⎦ ⎤ m o d 2 6
Using the row operation: 1 7 ∗ R o w 2 ⟹
C = ⎣ ⎡ 1 0 2 1 0 1 7 1 1 0 ⎦ ⎤ m o d 2 6
Using the row operation: 2 4 ∗ R o w 2 + R o w 1 ⟹
C = ⎣ ⎡ 1 0 0 1 1 8 1 7 7 1 0 ⎦ ⎤ m o d 2 6
⟹
A − 1 = ⎣ ⎡ 1 8 1 7 7 1 0 ⎦ ⎤ m o d 2 6
Note: A ∗ A − 1 = I
Deciphering the first block ⎣ ⎡ 1 7 1 6 ⎦ ⎤ :
X 1 = A − 1 ∗ B 1 m o d 2 6 = ⎣ ⎡ 1 8 1 7 7 1 0 ⎦ ⎤ ∗ ⎣ ⎡ 1 7 1 6 ⎦ ⎤ m o d 2 6 = ⎣ ⎡ 2 7 ⎦ ⎤ m o d 2 6 :
Deciphering the second block ⎣ ⎡ 1 9 8 ⎦ ⎤ :
X 2 = A − 1 ∗ B 2 m o d 2 6 = ⎣ ⎡ 1 8 1 7 7 1 0 ⎦ ⎤ ∗ ⎣ ⎡ 1 9 8 ⎦ ⎤ m o d 2 6 = ⎣ ⎡ 8 1 3 ⎦ ⎤ m o d 2 6
Repeat the same procedure for the remaining five blocks.
Our deciphered blocks are:
2 7
8 1 3
4 1 8
4 1 3
4 2 2
2 4 4
0 1 7
Our plain text message is:
C H I N E S E N E W Y E A R
As a string of integers we have: 2 7 8 1 3 4 1 8 4 1 3 4 2 2 2 4 4 0 1 7 .
The Chinese New Year is on January 28, 2017.