0% found this document useful (0 votes)
34 views7 pages

Matrix-Based Cryptography Explained

The document describes a mathematics competition where contestants must decrypt encoded matrices to find the password and win a cash prize. It provides the encryption method used, which involves assigning letters to numbers, creating a key matrix, and encoding the password by multiplying 2x1 matrices of the password numbers with the key matrix. Contestants must invert the key matrix and multiply it with the encoded matrices to decrypt them back to the original password, "TAKE YOUR PRIZE!", and claim the million rand prize.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views7 pages

Matrix-Based Cryptography Explained

The document describes a mathematics competition where contestants must decrypt encoded matrices to find the password and win a cash prize. It provides the encryption method used, which involves assigning letters to numbers, creating a key matrix, and encoding the password by multiplying 2x1 matrices of the password numbers with the key matrix. Contestants must invert the key matrix and multiply it with the encoded matrices to decrypt them back to the original password, "TAKE YOUR PRIZE!", and claim the million rand prize.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Cryptography And the Use of Matrices to

Encrypt and Decrypt a Message.


Name: Abdud Dayyaan Mathee

Student Number: 4263262

Date of Submission: 25 September 2023


Table of Contents
Introduction................................................................................................................................1
Game Show..............................................................................Error! Bookmark not defined.
Method of Encryption............................................................................................................1
Instructions.............................................................................................................................2
Method of Decryption............................................................................................................2
Appendixes.................................................................................................................................4
Letter-to-number Conversion Table.......................................................................................4
Encoded Password.................................................................................................................4
Key Matrix.............................................................................................................................4
References..................................................................................................................................5
Introduction
The process of hiding and coding information is known as cryptography. The Hill algorithm,
eponymous to mathematics professor, Lester Hill, is a method of encryption using matrix
multiplication and matrix inverses. Lester Hill pioneered the use of mathematical methods in
encryption during his involvement in the military in the early 1920s.

Professor Hill created a mechanical encryption machine which used gears and levers to
encode and decode messages. Letters were arbitrarily assigned to numbers and were encoded
into a machine by using an encryption key. If messages were exchanged between military
personnel, it was imperative for the encryption key to be kept confidential, such that the
content of those messages could never be decoded by a potential interceptor.

Mathematics Competition
For the final challenge of a mathematics competition, a safe with a million rand stands
between two contestants. Each contestant receives the same set of matrices, which can be
decoded to find the password for the safe. The first contestant to crack the code will gain
access to the safe and win the prize money. The two finalists are given a key matrix and eight
encoded matrices as a guide.
Method of Encryption

 Letters of the alphabet were assigned numerical values in order of their occurrence.
 A key matrix “M” was created as an encryption tool.
 M= [ ]
5 2
3 2
 Using the Letter-to-number Conversion Table, a set of numbers corresponding to the
actual password was obtained.
 TAKE YOUR PRIZE! = 20, 1, 11, 5, 27, 25, 15, 21, 18, 27, 16, 18, 9, 26, 5, 27
 2x1 matrices were created from the set of numbers above, in pairs of consecutive 2s.
 A= [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ]
20
1
;B=
11
5
;C=
27
25
;D=
15
21
;E=
18
27
;F=
16
18
;G=
9
26
;H=
5
27
 Each 2x1 matrix was then multiplied by the key matrix. The matrices obtained after
multiplication is the Encoded Password for the safe.

1
Instructions

Use your knowledge of matrix inversion and multiplication to crack the code.

1. Invert the key matrix.


2. Multiply the eight encoded matrices by the inverted matrix.
3. Use the obtained values to find the corresponding letters in the given conversion table.
4. The letters you have obtained is the code you need to access the safe.
5. Submit the correct code before your opponent to secure your prize.
Method of Decryption

Step 1

[ ]
1 −1
M-1 =
1
10−6 −3 5[
2 −2
=
2
−3 ] 2
5
4 4

Step 2

[ ]
1 −1
M-1. MA =
2
−3
2
5 [ 102
62 ]
= [ 1]
20
=A

4 4

[ ][ ] [ ]
1 −1
2 2 65 11
M-1. MB = = =B
−3 5 43 5
4 4

[ ][ ] [ ]
1 −1
2 2 185 27
M-1. MC = = =C
−3 5 131 25
4 4

[ ][ ] [ ]
1 −1
2 2 117 15
M-1. MD = = =D
−3 5 84 21
4 4

[ ][ ] [ ]
1 −1
2 2 144 18
M-1. ME = = =E
−3 5 108 27
4 4

2
[ ][ ] [ ]
1 −1
2 2 116 16
M-1. MF = = =F
−3 5 84 18
4 4

[ ][ ] [ ]
1 −1
2 2 97 9
M-1. MG = = =G
−3 5 79 26
4 4

[ ][ ] [ ]
1 −1
2 2 79 5
M-1. MH = = =H
−3 5 69 27
4 4

Step 3

[ 201 ] = [ TA ]
[ 115] = [ KE ]
[ 2725 ] = [Y¿ ]
[ 1521] = [ OU ]
[ 1827 ] = [ R¿ ]
[ 1618] = [ PR ]
[ 269 ] = [ ZI ]
[ 275 ] = [ E¿ ]
Step 4
TAKE YOUR PRIZE!
Step 5
Congratulations, you win R1 000 000 in cash!

3
Appendixes
Letter-to-number Conversion Table

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z *

1 1 1 2 2
1 2 3 4 5 6 7 8 9 10 11 13 15 16 18 19 21 22 23 25 26 27
2 4 7 0 4

(*) character represents any additional character.


Key Matrix

M= [ 53 22]
Created Matrices

A= [ 201]; B = [ 115]; C = [ 2725]; D = [ 1521]; E = [ 1827 ]; F = [ 1618]; G = [ 269 ]; H = [ 275 ]


Encoded Password

MA = [ 102
62 ]

MB = [ ]
65
43

MC = [
131 ]
185

MD = [
87 ]
117

ME = [
108 ]
144

MF = [
84 ]
116

MG = [ ]
97
79

MH = [ ]
79
69

4
References
Bloom, R. S. (2022, July 17). Mathematics. Retrieved from LibreTexts:
[Link]
matics_(Sekhon_and_Bloom)/02%3A_Matrices/
2.05%3A_Application_of_Matrices_in_Cryptography
Richards, K. (2021, September 27). Search Security. Retrieved from TechTarget:
[Link]

Common questions

Powered by AI

The Hill algorithm primarily uses matrix multiplication and matrix inverses for encryption. This method's significance lies in its ability to convert textual data into numerical form which can be encrypted and decrypted using mathematical operations, ensuring the confidentiality of the messages. The use of matrix operations allows for complex encoding that is difficult to decipher without the correct key matrix, enhancing security.

To enhance security against modern computational attacks, the described encryption method could incorporate larger matrices, increasing complexity and the key space, which makes it harder for brute-force attacks to succeed. Implementing non-linear transformations or using a combination of cryptographic techniques like adding a layer of permutation or substitution could further obscure the encoding process. Additionally, periodically changing the key matrix and incorporating secure key exchange protocols would prevent the key from being exposed or deduced over time. Adopting advanced cryptographic standards such as asymmetric cryptography or quantum-resistant algorithms could significantly improve the security framework against evolving threats.

Matrix-based methods like the Hill algorithm have several limitations in modern cryptographic contexts. First, the reliance on simple linear algebra (matrix multiplication and inversion) makes them vulnerable to linear algebra-based attacks if the key is small or not sufficiently complex. Secondly, advancements in computing power and cryptographic attacks have exposed weaknesses in small matrix sizes, making it easier for attackers to deduce the key through brute-force methods. Additionally, these methods do not inherently provide security against more advanced cryptographic concerns like integrity and authentication, which are required in modern cryptographic systems.

Keeping the key matrix confidential is crucial because it is the fundamental tool that enables the decryption of the encoded messages in matrix-based cryptographic systems. If an interceptor gains access to the key matrix, they could potentially decrypt intercepted messages, compromising the confidentiality and integrity of the information. The security of the entire cryptographic system relies heavily on the secrecy of the key matrix, making it paramount to protect it from unauthorized access.

The creation of a key matrix M acts as an encryption tool in the Hill algorithm. It facilitates the process by defining a specific operation that converts plain text into coded text through multiplication with matrices derived from the original message. The key matrix introduces multiplication of vectorized text data, resulting in encoded numerical matrices that represent the encrypted message. This controlled transformation ensures that only parties with the key matrix can decode the message.

The encryption method ensures that each letter pair is uniquely represented by using matrix multiplication. When each 2x1 matrix, derived from pairs of letters using the conversion table, is multiplied by the key matrix, the resulting matrices are unique to their input. Given the specific properties of matrix multiplication, different input values (letter pairs) produce distinct encoded matrices. This uniqueness is a result of the non-reversible nature of the matrix multiplication operation unless the correct key matrix and its inverse are used for decryption.

Quickly decoding the matrices in a competitive challenge has strategic importance as it not only determines the speed at which a contestant can access confidential information but also impacts their chances of winning. Given that the challenge involves significant rewards (e.g., a million rand safe), efficiently executing the decryption is crucial to gain an advantage over the opponent. Timely decryption involves mathematical proficiency and effective use of the cryptographic key, highlighting its importance in gaining a competitive edge.

The letter-to-number conversion table plays a vital role by assigning numerical values to each letter of the alphabet, corresponding to their occurrence order. This conversion is necessary to transform readable text (letters) into numbers that can be manipulated mathematically using matrices in the encryption and decryption processes. This step ensures that the message can be encoded into a numerical form suitable for matrix operations and then decoded back into text following decryption.

In the Hill algorithm's encryption method, the process involves first converting each pair of letters from the message into a 2x1 matrix using their numerical equivalents from the conversion table. Then, each of these 2x1 matrices is multiplied by the key matrix. The product is a new matrix that represents the encoded version of the original letter pair. This operation is repeated for each pair in the message, resulting in a series of encoded matrices that form the encrypted message.

Matrix inversion is critical in the decryption phase of the Hill algorithm as it is used to reverse the encryption process. Specifically, to decrypt the message, the encoded matrices are multiplied by the inverse of the key matrix. This operation effectively reverses the matrix multiplication carried out during encryption, transforming the encoded numbers back into their original numerical pairs. These numbers are then converted back to letters using the conversion table, revealing the original message.

You might also like