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 \( 3\) modulo \( 26\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}6 & 19 \\ 9 & 3\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 \) : \[VBWEXBMHYX\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
26 & 3 & 2 & 8&-1 & 9 \\ \hline
3 & 2 & 1 & 1&1 & -1 \\ \hline
2 & 1 & 0 & 2&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 3\) est \( 9\) .
- D'après le cours \( det(A)= -153\equiv_{26}3\) .
- La matrice \( A \) est inversible car le déterminant est inversible modulo \( 26\) .
- D'après le cours :
\[ \begin{pmatrix}6 & 19 \\ 9 & 3\end{pmatrix}^{-1} \equiv_{26} 9\begin{pmatrix}3 & -19 \\ -9 & 6\end{pmatrix}
\equiv_{26}\begin{pmatrix}27 & -171 \\ -81 & 54\end{pmatrix}
\equiv_{26}\begin{pmatrix}1 & -15 \\ -3 & 2\end{pmatrix}
\]
- \[\begin{array}{r|*{10}{|c}} Cryptogramme & V & B & W & E & X & B & M & H & Y & X\\\hline Codex & 21 & 1 & 22 & 4 & 23 & 1 & 12 & 7 & 24 & 23\\\hline Vecteurs & &{ \begin{pmatrix}21 \\ 1\end{pmatrix} } & &{ \begin{pmatrix}22 \\ 4\end{pmatrix} } & &{ \begin{pmatrix}23 \\ 1\end{pmatrix} } & &{ \begin{pmatrix}12 \\ 7\end{pmatrix} } & &{ \begin{pmatrix}24 \\ 23\end{pmatrix} }\\\hline\begin{pmatrix}1 & -15 \\ -3 & 2\end{pmatrix} & &{ \begin{pmatrix}6 \\ -61\end{pmatrix} } & &{ \begin{pmatrix}-38 \\ -58\end{pmatrix} } & &{ \begin{pmatrix}8 \\ -67\end{pmatrix} } & &{ \begin{pmatrix}-93 \\ -22\end{pmatrix} } & &{ \begin{pmatrix}-321 \\ -26\end{pmatrix} }\\\hline\equiv_{26} & &{ \begin{pmatrix}6 \\ 17\end{pmatrix} } & &{ \begin{pmatrix}14 \\ 20\end{pmatrix} } & &{ \begin{pmatrix}8 \\ 11\end{pmatrix} } & &{ \begin{pmatrix}11 \\ 4\end{pmatrix} } & &{ \begin{pmatrix}17 \\ 0\end{pmatrix} }\\\hline & 6 & 17 & 14 & 20 & 8 & 11 & 11 & 4 & 17 & 0\\\hline Message & G & R & O & U & I & L & L & E & R & A\end{array}\]Le message claire est \( GROUILLERA \) .