I'd have a quick question over hill cipher encrytion.
Say I have an input
[8 9]
I was to encrypt and an encryption matrix
[1 2]
[3 4]
I multiply the matrix by the input as:
[1 2][8] = [26 60]
[3 4][9]
I am now supposed to take mod 26 of both values of the output vector and convert them back to a corresponding letter using the table
1 = 'a', 2 = 'b', ... , 'z' = 26
However, considering 26 mod 26 is 0, how should I proceed?
0..25
, either start witha=0
or simply wrap it around, soz=0
.