L'exercice suivant est automatiquement et aléatoirement généré par ataraXy.
Si vous regénérez la page (F5) les valeurs seront changées.
La correction se trouve en bas de page.
Exercice
- Calculer l'inverse modulaire de \( 9\) modulo \( 26\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}19 & 7 \\ 17 & 4\end{pmatrix}\) .
- Expliquer pourquoi la matrice \( A \) est inversible modulo \( 26\) .
- Déterminer l'inverse de la matrice \( A \) .
- Déchiffrer le message suivant, crypté par la méthode de Hill par paquet de 1 de clef \( A \) : \[GMDLTCYWYQ\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
26 & 9 & 8 & 2&-1 & 3 \\ \hline
9 & 8 & 1 & 1&1 & -1 \\ \hline
8 & 1 & 0 & 8&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 9\) est \( 3\) .
- D'après le cours \( det(A)= -43\equiv_{26}9\) .
- La matrice \( A \) est inversible car le déterminant est inversible modulo \( 26\) .
- D'après le cours :
\[ \begin{pmatrix}19 & 7 \\ 17 & 4\end{pmatrix}^{-1} \equiv_{26} 3\begin{pmatrix}4 & -7 \\ -17 & 19\end{pmatrix}
\equiv_{26}\begin{pmatrix}12 & -21 \\ -51 & 57\end{pmatrix}
\equiv_{26}\begin{pmatrix}12 & -21 \\ -25 & 5\end{pmatrix}
\]
- \[\begin{array}{r|*{10}{|c}} Cryptogramme & G & M & D & L & T & C & Y & W & Y & Q\\\hline Codex & 6 & 12 & 3 & 11 & 19 & 2 & 24 & 22 & 24 & 16\\\hline Vecteurs & &{ \begin{pmatrix}6 \\ 12\end{pmatrix} } & &{ \begin{pmatrix}3 \\ 11\end{pmatrix} } & &{ \begin{pmatrix}19 \\ 2\end{pmatrix} } & &{ \begin{pmatrix}24 \\ 22\end{pmatrix} } & &{ \begin{pmatrix}24 \\ 16\end{pmatrix} }\\\hline\begin{pmatrix}12 & -21 \\ -25 & 5\end{pmatrix} & &{ \begin{pmatrix}-180 \\ -90\end{pmatrix} } & &{ \begin{pmatrix}-195 \\ -20\end{pmatrix} } & &{ \begin{pmatrix}186 \\ -465\end{pmatrix} } & &{ \begin{pmatrix}-174 \\ -490\end{pmatrix} } & &{ \begin{pmatrix}-48 \\ -520\end{pmatrix} }\\\hline\equiv_{26} & &{ \begin{pmatrix}2 \\ 14\end{pmatrix} } & &{ \begin{pmatrix}13 \\ 6\end{pmatrix} } & &{ \begin{pmatrix}4 \\ 3\end{pmatrix} } & &{ \begin{pmatrix}8 \\ 4\end{pmatrix} } & &{ \begin{pmatrix}4 \\ 0\end{pmatrix} }\\\hline & 2 & 14 & 13 & 6 & 4 & 3 & 8 & 4 & 4 & 0\\\hline Message & C & O & N & G & E & D & I & E & E & A\end{array}\]Le message claire est \( CONGEDIEEA \) .