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 \( 587\) modulo \( 2526\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}1538 & 1133 \\ 381 & 217\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 \) : \[578-1930-1162-61-2166-1021\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
2526 & 587 & 178 & 4&155 & -667 \\ \hline
587 & 178 & 53 & 3&-47 & 155 \\ \hline
178 & 53 & 19 & 3&14 & -47 \\ \hline
53 & 19 & 15 & 2&-5 & 14 \\ \hline
19 & 15 & 4 & 1&4 & -5 \\ \hline
15 & 4 & 3 & 3&-1 & 4 \\ \hline
4 & 3 & 1 & 1&1 & -1 \\ \hline
3 & 1 & 0 & 3&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 587\) est \( 1859\) .
- D'après le cours \( det(A)= -97927\equiv_{2526}587\) .
- La matrice \( A \) est inversible car le déterminant est inversible modulo \( 2526\) .
- D'après le cours :
\[ \begin{pmatrix}1538 & 1133 \\ 381 & 217\end{pmatrix}^{-1} \equiv_{2526} 1859\begin{pmatrix}217 & -1133 \\ -381 & 1538\end{pmatrix}
\equiv_{2526}\begin{pmatrix}403403 & -2106247 \\ -708279 & 2859142\end{pmatrix}
\equiv_{2526}\begin{pmatrix}1769 & -2089 \\ -999 & 2236\end{pmatrix}
\]
- \[\begin{array}{r|*{6}{|c}} Cryptogramme & 578 & 1930 & 1162 & 61 & 2166 & 1021\\\hline Vecteurs & &{ \begin{pmatrix}578 \\ 1930\end{pmatrix} } & &{ \begin{pmatrix}1162 \\ 61\end{pmatrix} } & &{ \begin{pmatrix}2166 \\ 1021\end{pmatrix} }\\\hline\begin{pmatrix}1769 & -2089 \\ -999 & 2236\end{pmatrix} & &{ \begin{pmatrix}-3009288 \\ 3738058\end{pmatrix} } & &{ \begin{pmatrix}1928149 \\ -1024442\end{pmatrix} } & &{ \begin{pmatrix}1698785 \\ 119122\end{pmatrix} }\\\hline\equiv_{2526} & &{ \begin{pmatrix}1704 \\ 2104\end{pmatrix} } & &{ \begin{pmatrix}811 \\ 1114\end{pmatrix} } & &{ \begin{pmatrix}1313 \\ 400\end{pmatrix} }\\\hline & 1704 & 2104 & 811 & 1114 & 1313 & 400\\\hline Message & RE & VE & IL & LO & NN & EA\end{array}\]Le message claire est \( REVEILLONNEA \) .