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 \( 893\) modulo \( 2526\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}1303 & 847 & 1703 \\ 96 & 1526 & 513 \\ 492 & 563 & 2386\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}3352217 & -1062153 & -2164267 \\ 23340 & 2271082 & -504951 \\ -696744 & -316865 & 1907066\end{pmatrix}\) .
- Déchiffrer le message suivant, crypté par la méthode de Hill par paquet de 2 de clef \( A \) : \[250-1031-70-844-510-2298\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
2526 & 893 & 740 & 2&-286 & 809 \\ \hline
893 & 740 & 153 & 1&237 & -286 \\ \hline
740 & 153 & 128 & 4&-49 & 237 \\ \hline
153 & 128 & 25 & 1&41 & -49 \\ \hline
128 & 25 & 3 & 5&-8 & 41 \\ \hline
25 & 3 & 1 & 8&1 & -8 \\ \hline
3 & 1 & 0 & 3&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 893\) est \( 809\) .
- D'après le cours \( det(A)= 3201152699\equiv_{2526}893\) .
- 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}1303 & 847 & 1703 \\ 96 & 1526 & 513 \\ 492 & 563 & 2386\end{pmatrix}\begin{pmatrix}3352217 & -1062153 & -2164267 \\ 23340 & 2271082 & -504951 \\ -696744 & -316865 & 1907066\end{pmatrix}\\
&=& \begin{pmatrix}3201152699 & 0 & 0 \\ 0 & 3201152699 & 0 \\ 0 & 0 & 3201152699\end{pmatrix}\\
&=&3201152699\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}\\
&\equiv_{2526}&893\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}
\end{eqnarray*}
Ainsi \( A\times B\equiv_{2526}893Id_{3}\) . Puisque \( 809\) est l'inverse de \( 893\) modulo \( 2526\) , on en déduit que \( A\times (809B)\equiv_{2526} Id_{3}\) et donc que \( 809B\equiv_{2526}A^{-1}\) . En conclusion :
\[ A^{-1}\equiv_{2526}809\begin{pmatrix}3352217 & -1062153 & -2164267 \\ 23340 & 2271082 & -504951 \\ -696744 & -316865 & 1907066\end{pmatrix}\equiv_{2526}\begin{pmatrix}2167 & -2253 & -155 \\ 210 & 1556 & -639 \\ -1626 & -253 & 1270\end{pmatrix}\]
- \[\begin{array}{r|*{6}{|c}} Cryptogramme & 250 & 1031 & 70 & 844 & 510 & 2298\\\hline Vecteurs & &&{ \begin{pmatrix}250 \\ 1031 \\ 70\end{pmatrix} } & &&{ \begin{pmatrix}844 \\ 510 \\ 2298\end{pmatrix} }\\\hline\begin{pmatrix}2167 & -2253 & -155 \\ 210 & 1556 & -639 \\ -1626 & -253 & 1270\end{pmatrix} & &&{ \begin{pmatrix}-1791943 \\ 1612006 \\ -578443\end{pmatrix} } & &&{ \begin{pmatrix}323728 \\ -497622 \\ 1417086\end{pmatrix} }\\\hline\equiv_{2526} & &&{ \begin{pmatrix}1517 \\ 418 \\ 11\end{pmatrix} } & &&{ \begin{pmatrix}400 \\ 0 \\ 0\end{pmatrix} }\\\hline & 1517 & 418 & 11 & 400 & 0 & 0\\\hline Message & PR & ES & AL & EA & AA & AA\end{array}\]Le message claire est \( PRESALEAAAAA \) .