How to calculate the inverse key matrix in Hill Cipher algorithm?
I am finding it very hard to understand the way the inverse of the matrix is calculated in the Hill Cipher algorithm. I get the idea of it all being done in modulo arithmetic, but somehow things are not adding up. I would really appreciate a simple explanation! Consider the following Hill Cipher key matrix: 5 8 17 3 Please use the above matrix for illustration. You must study the Linear congruence theorem and the extended GCD algorithm , which belong to Number Theory , in order to understand the maths behind modulo arithmetic . The inverse of matrix K for example is (1/det(K)) * adjoint(K),