February 2020
Beginner
621 pages
19h 34m
English
The ciphertext
was encrypted using a Hill cipher with matrix
Decrypt it.
SOLUTION
A matrix is entered as . Type to multiply matrices and . Type to multiply a vector on the right by a matrix .
First, we put the above matrix in the variable .
>> M=[1 2 3; 4 5 6; 7 8 10]M =
Next, we need to invert the matrix mod 26:
>> Minv=inv(M)Minv =
Since we are working mod 26, we can’t stop with numbers like . We need to get rid of the denominators and reduce mod 26. To do so, we multiply by 3 to extract the numerators of the fractions, then multiply by the inverse of 3 mod 26 to put the ...
Read now
Unlock full access