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 \( 523\) modulo \( 2526\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}1903 & 1689 \\ 1135 & 2116\end{pmatrix}\) .
- Expliquer pourquoi la matrice \( A \) est inversible modulo \( 2526\) .
- Déterminer l'inverse de la matrice \( A \) .
- Déchiffrer le message suivant, crypté par la méthode de Hill par paquet de 2 de clef \( A \) : \[1516-834-874-2400\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
2526 & 523 & 434 & 4&47 & -227 \\ \hline
523 & 434 & 89 & 1&-39 & 47 \\ \hline
434 & 89 & 78 & 4&8 & -39 \\ \hline
89 & 78 & 11 & 1&-7 & 8 \\ \hline
78 & 11 & 1 & 7&1 & -7 \\ \hline
11 & 1 & 0 & 11&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 523\) est \( 2299\) .
- D'après le cours \( det(A)= 2109733\equiv_{2526}523\) .
- La matrice \( A \) est inversible car le déterminant est inversible modulo \( 2526\) .
- D'après le cours :
\[ \begin{pmatrix}1903 & 1689 \\ 1135 & 2116\end{pmatrix}^{-1} \equiv_{2526} 2299\begin{pmatrix}2116 & -1689 \\ -1135 & 1903\end{pmatrix}
\equiv_{2526}\begin{pmatrix}4864684 & -3883011 \\ -2609365 & 4374997\end{pmatrix}
\equiv_{2526}\begin{pmatrix}2134 & -549 \\ -7 & 2491\end{pmatrix}
\]
- \[\begin{array}{r|*{4}{|c}} Cryptogramme & 1516 & 834 & 874 & 2400\\\hline Vecteurs & &{ \begin{pmatrix}1516 \\ 834\end{pmatrix} } & &{ \begin{pmatrix}874 \\ 2400\end{pmatrix} }\\\hline\begin{pmatrix}2134 & -549 \\ -7 & 2491\end{pmatrix} & &{ \begin{pmatrix}2777278 \\ 2066882\end{pmatrix} } & &{ \begin{pmatrix}547516 \\ 5972282\end{pmatrix} }\\\hline\equiv_{2526} & &{ \begin{pmatrix}1204 \\ 614\end{pmatrix} } & &{ \begin{pmatrix}1900 \\ 818\end{pmatrix} }\\\hline & 1204 & 614 & 1900 & 818\\\hline Message & ME & GO & TA & IS\end{array}\]Le message claire est \( MEGOTAIS \) .