- Apr 16, 2001
- 247
- 0
- 0
I am trying to break this hill cipher for my course.
I've analyzed the encoding process and have found that the machine encodes plaintext with an order of 2, (it encodes in blocks of two).
Now the problem is that I can't find the correct key.
The initial plaintext (P) I enter is ABCD, which have the ascii values of 65, 66, 67, 68.
So the plaintext matrix is
[65 66]
[67 68]
(the machine encoded with an order of 2)
The cipher text (C) encodes and outputs 62, 0, 114, 112
Which is the matrix
[62 0 ]
[114 112]
I found that P^(-1) is
[93 33]
[97 31]
Then I found the key by matrix mult. and got [51,14],[3, 122]. The matrix is below.
[51 14 ]
[3 122 ]
I don't know if I inverted the P^(-1) incorrectly or if I went wrong somewhere else, but this isn't the correct key.
So I don't know what went wrong.
Please help me with any suggestions.
I've analyzed the encoding process and have found that the machine encodes plaintext with an order of 2, (it encodes in blocks of two).
Now the problem is that I can't find the correct key.
The initial plaintext (P) I enter is ABCD, which have the ascii values of 65, 66, 67, 68.
So the plaintext matrix is
[65 66]
[67 68]
(the machine encoded with an order of 2)
The cipher text (C) encodes and outputs 62, 0, 114, 112
Which is the matrix
[62 0 ]
[114 112]
I found that P^(-1) is
[93 33]
[97 31]
Then I found the key by matrix mult. and got [51,14],[3, 122]. The matrix is below.
[51 14 ]
[3 122 ]
I don't know if I inverted the P^(-1) incorrectly or if I went wrong somewhere else, but this isn't the correct key.
So I don't know what went wrong.
Please help me with any suggestions.
