0% found this document useful (0 votes)
79 views4 pages

Pete Pukit 1102

This document discusses cryptography using matrix encoding and decoding. It defines an encoding matrix A and calculates its determinant to be 1. It includes a table assigning numbers to letters and uses the matrix to encode a message into numbers. It then finds the inverse decoding matrix 1/A and uses it to decode the encoded message back into the original letters.

Uploaded by

api-514273111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views4 pages

Pete Pukit 1102

This document discusses cryptography using matrix encoding and decoding. It defines an encoding matrix A and calculates its determinant to be 1. It includes a table assigning numbers to letters and uses the matrix to encode a message into numbers. It then finds the inverse decoding matrix 1/A and uses it to decode the encoded message back into the original letters.

Uploaded by

api-514273111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Cryptography Project 

Encoding matrix A 
 
 
 
 
Finding the determinant of Encoding matrix : Cofactor expansion of column 1 
-R5 + R1 
-R5 + R2 
-R5 + R3 
-R5 + R4 
 
 
 
det(A) = +1  + 0 + 0 + 0 + 0 
 
 
= +1 • { -1  } 
 
 
= +1 • { -1 • {  +1 } } 
 
= 1(1) - 2(1) = -1 
 
 
det(A) = (+1) × (-1) × (+1) × (-1) = 1 
Encoding Message : Message > Number > Encoded Message 
Table : 
Assigned No.  Assigned Letter  Assigned No.  Assigned Letter  Assigned No.  Assigned Letter 
0  *Space*  13  M  26  Z 
1  A  14  N  27  . 
2  B  15  O  28  , 
3  C  16  P  29  ! 
4  D  17  Q  30  ? 
5  E  18  R  31  : 
6  F  19  S  32  ; 
7  G  20  T  33  " 
8  H  21  U  34  ( 
9  I  22  V  35  ) 
10  J  23  W  36  - 
11  K  24  X  37  / 
12  L  25  Y  38  ' 
 
Message(Letter) : ​[t_at_]​ ​[the_e]​ ​[nd_of]​ ​[_the_]​ ​[tunne]​ ​[l,_un]​ ​[less_] 
Message(Number) :   
[20 0 1 20 0]​, ​[20 8 5 0 5]​, ​[14 4 0 15 6]​, ​[0 20 8 5 0]​, ​[20 21 14 14 5]​, ​[12 28 0 21 14]​, ​[12 5 19 19 0] 

 
Message • Encoding matrix A = Encoded message 
 
 
• 
Finding the inverse of the Encoding matrix : Doubly Augmented Matrix 
 
 
 
 
Swap R1 with R5 

 
 
 
 
 
 
 
Swap R2 with R3 

 
 
 
 
-R5 + R4 

 
 
 
   
 
 
 
Decoding matrix: 1/A 
 
 
 
 
 
Decoding the Encoded Message : Encoded Message > Number > Message 
 
Encoded Number • Decoding matrix = Message 
 
 
• 
 
 
 
Message(Number) :   
[20 0 1 20 0]​, ​[20 8 5 0 5]​, ​[14 4 0 15 6]​, ​[0 20 8 5 0]​, ​[20 21 14 14 5]​, ​[12 28 0 21 14]​, ​[12 5 19 19 0] 
 

Message(Letter) : ​[t_at_]​ ​[the_e]​ ​[nd_of]​ ​[_the_]​ ​[tunne]​ ​[l,_un]​ ​[less_] 

You might also like