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 \( 1009\) modulo \( 2526\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}73 & 1923 \\ 363 & 268\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 \) : \[72-1202-2296-102\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
2526 & 1009 & 508 & 2&-288 & 721 \\ \hline
1009 & 508 & 501 & 1&145 & -288 \\ \hline
508 & 501 & 7 & 1&-143 & 145 \\ \hline
501 & 7 & 4 & 71&2 & -143 \\ \hline
7 & 4 & 3 & 1&-1 & 2 \\ \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 \( 1009\) est \( 721\) .
- D'après le cours \( det(A)= -678485\equiv_{2526}1009\) .
- La matrice \( A \) est inversible car le déterminant est inversible modulo \( 2526\) .
- D'après le cours :
\[ \begin{pmatrix}73 & 1923 \\ 363 & 268\end{pmatrix}^{-1} \equiv_{2526} 721\begin{pmatrix}268 & -1923 \\ -363 & 73\end{pmatrix}
\equiv_{2526}\begin{pmatrix}193228 & -1386483 \\ -261723 & 52633\end{pmatrix}
\equiv_{2526}\begin{pmatrix}1252 & -2235 \\ -1545 & 2113\end{pmatrix}
\]
- \[\begin{array}{r|*{4}{|c}} Cryptogramme & 72 & 1202 & 2296 & 102\\\hline Vecteurs & &{ \begin{pmatrix}72 \\ 1202\end{pmatrix} } & &{ \begin{pmatrix}2296 \\ 102\end{pmatrix} }\\\hline\begin{pmatrix}1252 & -2235 \\ -1545 & 2113\end{pmatrix} & &{ \begin{pmatrix}-2596326 \\ 2428586\end{pmatrix} } & &{ \begin{pmatrix}2646622 \\ -3331794\end{pmatrix} }\\\hline\equiv_{2526} & &{ \begin{pmatrix}402 \\ 1100\end{pmatrix} } & &{ \begin{pmatrix}1900 \\ 0\end{pmatrix} }\\\hline & 402 & 1100 & 1900 & 0\\\hline Message & EC & LA & TA & AA\end{array}\]Le message claire est \( ECLATAAA \) .