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 \( 827\) modulo \( 2526\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}1671 & 1703 \\ 998 & 939\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 \) : \[1792-2002-1536-92\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
2526 & 827 & 45 & 3&-147 & 449 \\ \hline
827 & 45 & 17 & 18&8 & -147 \\ \hline
45 & 17 & 11 & 2&-3 & 8 \\ \hline
17 & 11 & 6 & 1&2 & -3 \\ \hline
11 & 6 & 5 & 1&-1 & 2 \\ \hline
6 & 5 & 1 & 1&1 & -1 \\ \hline
5 & 1 & 0 & 5&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 827\) est \( 449\) .
- D'après le cours \( det(A)= -130525\equiv_{2526}827\) .
- La matrice \( A \) est inversible car le déterminant est inversible modulo \( 2526\) .
- D'après le cours :
\[ \begin{pmatrix}1671 & 1703 \\ 998 & 939\end{pmatrix}^{-1} \equiv_{2526} 449\begin{pmatrix}939 & -1703 \\ -998 & 1671\end{pmatrix}
\equiv_{2526}\begin{pmatrix}421611 & -764647 \\ -448102 & 750279\end{pmatrix}
\equiv_{2526}\begin{pmatrix}2295 & -1795 \\ -1000 & 57\end{pmatrix}
\]
- \[\begin{array}{r|*{4}{|c}} Cryptogramme & 1792 & 2002 & 1536 & 92\\\hline Vecteurs & &{ \begin{pmatrix}1792 \\ 2002\end{pmatrix} } & &{ \begin{pmatrix}1536 \\ 92\end{pmatrix} }\\\hline\begin{pmatrix}2295 & -1795 \\ -1000 & 57\end{pmatrix} & &{ \begin{pmatrix}519050 \\ -1677886\end{pmatrix} } & &{ \begin{pmatrix}3359980 \\ -1530756\end{pmatrix} }\\\hline\equiv_{2526} & &{ \begin{pmatrix}1220 \\ 1904\end{pmatrix} } & &{ \begin{pmatrix}400 \\ 0\end{pmatrix} }\\\hline & 1220 & 1904 & 400 & 0\\\hline Message & MU & TE & EA & AA\end{array}\]Le message claire est \( MUTEEAAA \) .