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 \( 21\) modulo \( 26\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}5 & 5 \\ 1 & 0\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 \) : \[YQHARTYGMA\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
26 & 21 & 5 & 1&-4 & 5 \\ \hline
21 & 5 & 1 & 4&1 & -4 \\ \hline
5 & 1 & 0 & 5&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 21\) est \( 5\) .
- D'après le cours \( det(A)= -5\equiv_{26}21\) .
- La matrice \( A \) est inversible car le déterminant est inversible modulo \( 26\) .
- D'après le cours :
\[ \begin{pmatrix}5 & 5 \\ 1 & 0\end{pmatrix}^{-1} \equiv_{26} 5\begin{pmatrix}0 & -5 \\ -1 & 5\end{pmatrix}
\equiv_{26}\begin{pmatrix}0 & -25 \\ -5 & 25\end{pmatrix}
\equiv_{26}\begin{pmatrix}0 & -25 \\ -5 & 25\end{pmatrix}
\]
- \[\begin{array}{r|*{10}{|c}} Cryptogramme & Y & Q & H & A & R & T & Y & G & M & A\\\hline Codex & 24 & 16 & 7 & 0 & 17 & 19 & 24 & 6 & 12 & 0\\\hline Vecteurs & &{ \begin{pmatrix}24 \\ 16\end{pmatrix} } & &{ \begin{pmatrix}7 \\ 0\end{pmatrix} } & &{ \begin{pmatrix}17 \\ 19\end{pmatrix} } & &{ \begin{pmatrix}24 \\ 6\end{pmatrix} } & &{ \begin{pmatrix}12 \\ 0\end{pmatrix} }\\\hline\begin{pmatrix}0 & -25 \\ -5 & 25\end{pmatrix} & &{ \begin{pmatrix}-400 \\ 280\end{pmatrix} } & &{ \begin{pmatrix}0 \\ -35\end{pmatrix} } & &{ \begin{pmatrix}-475 \\ 390\end{pmatrix} } & &{ \begin{pmatrix}-150 \\ 30\end{pmatrix} } & &{ \begin{pmatrix}0 \\ -60\end{pmatrix} }\\\hline\equiv_{26} & &{ \begin{pmatrix}16 \\ 20\end{pmatrix} } & &{ \begin{pmatrix}0 \\ 17\end{pmatrix} } & &{ \begin{pmatrix}19 \\ 0\end{pmatrix} } & &{ \begin{pmatrix}6 \\ 4\end{pmatrix} } & &{ \begin{pmatrix}0 \\ 18\end{pmatrix} }\\\hline & 16 & 20 & 0 & 17 & 19 & 0 & 6 & 4 & 0 & 18\\\hline Message & Q & U & A & R & T & A & G & E & A & S\end{array}\]Le message claire est \( QUARTAGEAS \) .