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 \( 1957\) modulo \( 2526\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}1125 & 629 & 772 \\ 817 & 572 & 9 \\ 843 & 2302 & 1104\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}610770 & 1082728 & -435923 \\ -894381 & 591204 & 620599 \\ 1398538 & -2059503 & 129607\end{pmatrix}\) .
- Déchiffrer le message suivant, crypté par la méthode de Hill par paquet de 2 de clef \( A \) : \[705-755-1956-1974-476-126\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
2526 & 1957 & 569 & 1&227 & -293 \\ \hline
1957 & 569 & 250 & 3&-66 & 227 \\ \hline
569 & 250 & 69 & 2&29 & -66 \\ \hline
250 & 69 & 43 & 3&-8 & 29 \\ \hline
69 & 43 & 26 & 1&5 & -8 \\ \hline
43 & 26 & 17 & 1&-3 & 5 \\ \hline
26 & 17 & 9 & 1&2 & -3 \\ \hline
17 & 9 & 8 & 1&-1 & 2 \\ \hline
9 & 8 & 1 & 1&1 & -1 \\ \hline
8 & 1 & 0 & 8&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 1957\) est \( 2233\) .
- D'après le cours \( det(A)= 1204221937\equiv_{2526}1957\) .
- 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}1125 & 629 & 772 \\ 817 & 572 & 9 \\ 843 & 2302 & 1104\end{pmatrix}\begin{pmatrix}610770 & 1082728 & -435923 \\ -894381 & 591204 & 620599 \\ 1398538 & -2059503 & 129607\end{pmatrix}\\
&=& \begin{pmatrix}1204221937 & 0 & 0 \\ 0 & 1204221937 & 0 \\ 0 & 0 & 1204221937\end{pmatrix}\\
&=&1204221937\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}\\
&\equiv_{2526}&1957\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}
\end{eqnarray*}
Ainsi \( A\times B\equiv_{2526}1957Id_{3}\) . Puisque \( 2233\) est l'inverse de \( 1957\) modulo \( 2526\) , on en déduit que \( A\times (2233B)\equiv_{2526} Id_{3}\) et donc que \( 2233B\equiv_{2526}A^{-1}\) . En conclusion :
\[ A^{-1}\equiv_{2526}2233\begin{pmatrix}610770 & 1082728 & -435923 \\ -894381 & 591204 & 620599 \\ 1398538 & -2059503 & 129607\end{pmatrix}\equiv_{2526}\begin{pmatrix}1386 & 1036 & -1751 \\ -1185 & 204 & 1129 \\ 1138 & -1761 & 1033\end{pmatrix}\]
- \[\begin{array}{r|*{6}{|c}} Cryptogramme & 705 & 755 & 1956 & 1974 & 476 & 126\\\hline Vecteurs & &&{ \begin{pmatrix}705 \\ 755 \\ 1956\end{pmatrix} } & &&{ \begin{pmatrix}1974 \\ 476 \\ 126\end{pmatrix} }\\\hline\begin{pmatrix}1386 & 1036 & -1751 \\ -1185 & 204 & 1129 \\ 1138 & -1761 & 1033\end{pmatrix} & &&{ \begin{pmatrix}-1665646 \\ 1526919 \\ 1493283\end{pmatrix} } & &&{ \begin{pmatrix}3008474 \\ -2099832 \\ 1538334\end{pmatrix} }\\\hline\equiv_{2526} & &&{ \begin{pmatrix}1514 \\ 1215 \\ 417\end{pmatrix} } & &&{ \begin{pmatrix}8 \\ 1800 \\ 0\end{pmatrix} }\\\hline & 1514 & 1215 & 417 & 8 & 1800 & 0\\\hline Message & PO & MP & ER & AI & SA & AA\end{array}\]Le message claire est \( POMPERAISAAA \) .