Cryptography Final Project
Cryptography Final Project
MESSAGE: R_JOKES._OUR_CRAZY_FIGHTS._ALL_OF_THESE_
_=0 F=6 L = 12 R = 18 X = 24 = 30
A=1 G=7 M = 13 S = 19 Y = 25 ) = 31
B=2 H=8 N = 14 T = 20 Z = 26 1 = 32
C=3 I=9 O = 15 U = 21 . = 27 9 = 33
D=4 J = 10 P = 16 V = 22 ; = 28 2 = 34
E=5 K = 11 Q = 17 W = 23 : = 29 , = 35
‘ = 36
18 0 10 15 11 5 19 27 0 15 21 18 0 3 18
A Z Y _ F I G H T S . _ A L L
0 26 25 0 6 9 7 8 20 19 27 0 1 12 12
_ O F _ T H E S E _
0 15 6 0 20 8 5 19 5 0
Det =1
5×5
R₂ − R₄
R₄
R₂
R₅ − 2R₁
∴ Determinant = 1×1×1×1×1 = 1
Convert message to numeric
Code part 1
Code part 2
Code part 3
Encoding part 1
× =
× =
Encoding part 3
× =
Encoded Message
R₅ - 2R₁
R₁ - R₃
R₂ - R₄
R₁-5R₂
R₁+2R₃
R₁+4R₄
R₁+18R₅
R₂-2R₃
R₂+5R₄
R₂-34R₅
R₃-4R₄
R₃+21R₅
R₄-6R₅
5×5 5×5
× = = I
∴ The original matrix key multiply by the inverse matrix of itself gives us the identity matrix,
so they are invisible to each others.
Decoding the encoded message
Decoding part 1
× =
Decoding part 2
× =
Decoding part 3
× =
Final Numbers : 18, 0, 10, 15, 11, 5, 19, 27, 0, 15, 21, 18, 0, 3, 18, 1, 26, 25, 0, 6, 9, 7, 8,
20, 19, 27, 0, 1, 12, 12, 0, 15, 6, 0, 20, 8, 5, 19, 5, 0
In this cryptogram project, we are writing a piece of letter as a whole class, and the
message in our letter is to be delivered to our homeroom teacher. The letter is not a normal
letter as we had learned about matrix and cryptography, so we converted our letter into coded
number and use a matrix knowledge to solve for the message in the letter.
At the beginning, we do the work as a class work to write a letter. After we finished
the letter, we divided the message equally and appoint each sentences to the classmates. We
also set a number to represent our letter and symbol. For my part, the message is 40 letters
long. I started my work by creating a key matrix with determinant of one. Then I convert my
letter to numeric from and arrange them in to my matrix with 2x5 dimension and 4x5
dimension. Next, I started to encode my message by multiplying the matrix with the key that
I created before. After that I will get the encoded secret message. Furthermore, if we want to
decode that message we need to multiply it with the inverse of the key. Finding the key is the
one of the difficult because I used a Gauss-Jordan elimination to find the inverse, during this
calculation I had to go through many steps before I could get the inverse, and I need to be
patient and careful with the number and row. When I got the inverse I can multiply my
encoded message with the inverse and then I will got the final message in a numeric form.
The numeric message can be easily change into the original letters message by looking at the
converting table that our class made.
There were some difficulties during the work. One is that that making a matrix with a
determinant of 1. I did went through it by making a matrix in row-echelon form first and then
I adjusted the row back and forth until I got the row with the determinant of 1. Another
hardship is to find the inverse of the key. On a first tried, my inverse matrix won’t suit the
identity that AA⁻¹ = I so I have to calculate it again, but the Gauss-Jordan elimination takes
time to solve. I spent a lot of time go through it carefully until I can prove that it is right
according to the identity.