Encryption Method (Hill cipher)The following table gives a correspondence between letters and numbers:
Encryption proceeds as follows:
- We replace the letters with the values associated using the table above, and we place the pairs of numbers obtained in column matrices: $C _ { 1 } = \binom { 12 } { 0 }$, $C _ { 2 } = \binom { 19 } { 7 }$
- We multiply the column matrices on the left by the matrix $A = \left( \begin{array} { l l } 9 & 4 \\ 7 & 3 \end{array} \right)$: $A C _ { 1 } = \binom { 108 } { 84 }$, $A C _ { 2 } = \binom { 199 } { 154 }$
- We replace each coefficient of the column matrices obtained by its remainder in the Euclidean division by 26: $108 = 4 \times 26 + 4$, $84 = 3 \times 26 + 6$, we obtain $\binom { 4 } { 6 }$
- We use the correspondence table between letters and numbers to obtain the encrypted word: EGRY
Question 1: By encrypting the word ``PION'' using this method, we obtain ``LZWH''. By detailing the steps for the letters ``ES'', encrypt the word ``ESPION''.
2. Decryption MethodLet $a, b, x, y, x^{\prime}$ and $y^{\prime}$ be relative integers. We know that if $x \equiv x^{\prime}$ modulo 26 and $y \equiv y^{\prime}$ modulo 26 then $ax + by \equiv ax^{\prime} + by^{\prime}$ modulo 26. This result allows us to write that, if $A$ is a $2 \times 2$ matrix, and $B$ and $C$ are two column matrices $2 \times 1$, then $B \equiv C$ modulo 26 implies $AB \equiv AC$ modulo 26.
a. Establish that the matrix $A = \left( \begin{array} { l l } 9 & 4 \\ 7 & 3 \end{array} \right)$ is invertible, and determine its inverse. b. Decrypt the word: XQGY.