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 \( 2279\) modulo \( 2526\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}169 & 123 & 126 \\ 1485 & 86 & 1385 \\ 2479 & 1694 & 690\end{pmatrix}\) .
- Expliquer pourquoi la matrice \( A \) est inversible modulo \( 2526\) .
- Déterminer l'inverse de la matrice \( A \) .
A cette fin, on pourra considérer le produit de la matrice \( A\) par la matrice \( B =\begin{pmatrix}-2286850 & 128574 & 159519 \\ 2408765 & -195744 & -46955 \\ 2302396 & 18631 & -168121\end{pmatrix}\) .
- Déchiffrer le message suivant, crypté par la méthode de Hill par paquet de 2 de clef \( A \) : \[2018-708-1884-2464-636-2050\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
2526 & 2279 & 247 & 1&-692 & 767 \\ \hline
2279 & 247 & 56 & 9&75 & -692 \\ \hline
247 & 56 & 23 & 4&-17 & 75 \\ \hline
56 & 23 & 10 & 2&7 & -17 \\ \hline
23 & 10 & 3 & 2&-3 & 7 \\ \hline
10 & 3 & 1 & 3&1 & -3 \\ \hline
3 & 1 & 0 & 3&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 2279\) est \( 767\) .
- D'après le cours \( det(A)= 199902341\equiv_{2526}2279\) .
- La matrice \( A \) est inversible car le déterminant est inversible modulo \( 2526\) .
- Réalisation le produit suggéré par l'énoncé :
\begin{eqnarray*}
A\times B
&=& \begin{pmatrix}169 & 123 & 126 \\ 1485 & 86 & 1385 \\ 2479 & 1694 & 690\end{pmatrix}\begin{pmatrix}-2286850 & 128574 & 159519 \\ 2408765 & -195744 & -46955 \\ 2302396 & 18631 & -168121\end{pmatrix}\\
&=& \begin{pmatrix}199902341 & 0 & 0 \\ 0 & 199902341 & 0 \\ 0 & 0 & 199902341\end{pmatrix}\\
&=&199902341\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}\\
&\equiv_{2526}&2279\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}
\end{eqnarray*}
Ainsi \( A\times B\equiv_{2526}2279Id_{3}\) . Puisque \( 767\) est l'inverse de \( 2279\) modulo \( 2526\) , on en déduit que \( A\times (767B)\equiv_{2526} Id_{3}\) et donc que \( 767B\equiv_{2526}A^{-1}\) . En conclusion :
\[ A^{-1}\equiv_{2526}767\begin{pmatrix}-2286850 & 128574 & 159519 \\ 2408765 & -195744 & -46955 \\ 2302396 & 18631 & -168121\end{pmatrix}\equiv_{2526}\begin{pmatrix}-2492 & 1218 & 1737 \\ 1303 & -312 & -1303 \\ 1028 & 395 & -1559\end{pmatrix}\]
- \[\begin{array}{r|*{6}{|c}} Cryptogramme & 2018 & 708 & 1884 & 2464 & 636 & 2050\\\hline Vecteurs & &&{ \begin{pmatrix}2018 \\ 708 \\ 1884\end{pmatrix} } & &&{ \begin{pmatrix}2464 \\ 636 \\ 2050\end{pmatrix} }\\\hline\begin{pmatrix}-2492 & 1218 & 1737 \\ 1303 & -312 & -1303 \\ 1028 & 395 & -1559\end{pmatrix} & &&{ \begin{pmatrix}-894004 \\ -46294 \\ -582992\end{pmatrix} } & &&{ \begin{pmatrix}-1804790 \\ 341010 \\ -411738\end{pmatrix} }\\\hline\equiv_{2526} & &&{ \begin{pmatrix}200 \\ 1700 \\ 514\end{pmatrix} } & &&{ \begin{pmatrix}1300 \\ 0 \\ 0\end{pmatrix} }\\\hline & 200 & 1700 & 514 & 1300 & 0 & 0\\\hline Message & CA & RA & FO & NA & AA & AA\end{array}\]Le message claire est \( CARAFONAAAAA \) .