Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Project 2

Question 1:
We will decode the following cryptogram:
5 2 25 11 -2 -7 -15 -15 32 14 -8 -13 38 19 -19 -19 37 16 by using the unknown
-1
[ ]
a b
matrix A = c d

When we divide the message into a 1 x 2 matrices we get,


[5 2] [25 11] [11 2] [-2 -7] [-15 -15] [32 14] [-8 -13] [38 19] [-19 -19] [37 16]
The first two letters of the last messages are “_” and “S” (S is the 19th letter). And
by assuming “_” is a space and its value = 0
We have:

[ -19 -19 ] × A =[ -19 -19 ] ×


-1
[ ac bd ]=[ -19 a -19c -19 b -19 d ]
{ {
¿> −19 a−19 c=0 =¿ a+ c=0 (1)
−19 b−19 d=19 b+ d=1

And we also have the last two letters are “U” (U is the 21st letter) and “E” (E is the
5th letter):

[ 37 16 ] × A = [ 37 16 ] ×
-1
[ ac db]=[ 37 a +16 c 37 b +16 d ]
{
¿> 37 a+16 c=21 (2)
37 b +16 d=5

{
a=1
b=1 -1 1 1
From (1) and (2) we have: c =−1 => A = −1 −2 [ ]
d=−2

Now we multiply1 x 2 matrices above with the decoding matrix A-1:

[−1 −21 ]=[ 31 ]


[ 5 2] × 1

[ 25 11 ] × [ 1 1 ]=[14 3]
−1 −2

[ -2 -7 ] × [ 1 1 ]=[5 12]
−1 −2
[
[ -15 - 15 ] × 1 1
−1 −2 ]
=[0 15]

[ 3214 ] × 1[−1 −21 ]=[18 4]


[ -8 -13 ] × [ 1 1 ]=[5 18]
−1 −2

[ 38 19 ] × [ 1 1 ]=[19 0]
−1 −2

Then, we get the following decoded matrices:


[3 1] [14 3] [5 12] [0 15] [18 4] [5 18] [19 0]
Splitting them again we have:
3 1 14 3 5 12 0 15 18 4 5 18 19 0
=> CANCEL ORDERS
So the message is: CANCEL ORDERS SUE

You might also like