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 \( 7\) modulo \( 26\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}17 & 22 \\ 22 & 9\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 \) : \[PYVMDKMA\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
26 & 7 & 5 & 3&3 & -11 \\ \hline
7 & 5 & 2 & 1&-2 & 3 \\ \hline
5 & 2 & 1 & 2&1 & -2 \\ \hline
2 & 1 & 0 & 2&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 7\) est \( 15\) .
- D'après le cours \( det(A)= -331\equiv_{26}7\) .
- La matrice \( A \) est inversible car le déterminant est inversible modulo \( 26\) .
- D'après le cours :
\[ \begin{pmatrix}17 & 22 \\ 22 & 9\end{pmatrix}^{-1} \equiv_{26} 15\begin{pmatrix}9 & -22 \\ -22 & 17\end{pmatrix}
\equiv_{26}\begin{pmatrix}135 & -330 \\ -330 & 255\end{pmatrix}
\equiv_{26}\begin{pmatrix}5 & -18 \\ -18 & 21\end{pmatrix}
\]
- \[\begin{array}{r|*{8}{|c}} Cryptogramme & P & Y & V & M & D & K & M & A\\\hline Codex & 15 & 24 & 21 & 12 & 3 & 10 & 12 & 0\\\hline Vecteurs & &{ \begin{pmatrix}15 \\ 24\end{pmatrix} } & &{ \begin{pmatrix}21 \\ 12\end{pmatrix} } & &{ \begin{pmatrix}3 \\ 10\end{pmatrix} } & &{ \begin{pmatrix}12 \\ 0\end{pmatrix} }\\\hline\begin{pmatrix}5 & -18 \\ -18 & 21\end{pmatrix} & &{ \begin{pmatrix}-357 \\ 234\end{pmatrix} } & &{ \begin{pmatrix}-111 \\ -126\end{pmatrix} } & &{ \begin{pmatrix}-165 \\ 156\end{pmatrix} } & &{ \begin{pmatrix}60 \\ -216\end{pmatrix} }\\\hline\equiv_{26} & &{ \begin{pmatrix}7 \\ 0\end{pmatrix} } & &{ \begin{pmatrix}19 \\ 4\end{pmatrix} } & &{ \begin{pmatrix}17 \\ 0\end{pmatrix} } & &{ \begin{pmatrix}8 \\ 18\end{pmatrix} }\\\hline & 7 & 0 & 19 & 4 & 17 & 0 & 8 & 18\\\hline Message & H & A & T & E & R & A & I & S\end{array}\]Le message claire est \( HATERAIS \) .