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 \( 359\) modulo \( 2526\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}1436 & 313 \\ 967 & 1518\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-1900-442-30\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
2526 & 359 & 13 & 7&-138 & 971 \\ \hline
359 & 13 & 8 & 27&5 & -138 \\ \hline
13 & 8 & 5 & 1&-3 & 5 \\ \hline
8 & 5 & 3 & 1&2 & -3 \\ \hline
5 & 3 & 2 & 1&-1 & 2 \\ \hline
3 & 2 & 1 & 1&1 & -1 \\ \hline
2 & 1 & 0 & 2&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 359\) est \( 971\) .
- D'après le cours \( det(A)= 1877177\equiv_{2526}359\) .
- La matrice \( A \) est inversible car le déterminant est inversible modulo \( 2526\) .
- D'après le cours :
\[ \begin{pmatrix}1436 & 313 \\ 967 & 1518\end{pmatrix}^{-1} \equiv_{2526} 971\begin{pmatrix}1518 & -313 \\ -967 & 1436\end{pmatrix}
\equiv_{2526}\begin{pmatrix}1473978 & -303923 \\ -938957 & 1394356\end{pmatrix}
\equiv_{2526}\begin{pmatrix}1320 & -803 \\ -1811 & 4\end{pmatrix}
\]
- \[\begin{array}{r|*{4}{|c}} Cryptogramme & 1792 & 1900 & 442 & 30\\\hline Vecteurs & &{ \begin{pmatrix}1792 \\ 1900\end{pmatrix} } & &{ \begin{pmatrix}442 \\ 30\end{pmatrix} }\\\hline\begin{pmatrix}1320 & -803 \\ -1811 & 4\end{pmatrix} & &{ \begin{pmatrix}839740 \\ -3237712\end{pmatrix} } & &{ \begin{pmatrix}559350 \\ -800342\end{pmatrix} }\\\hline\equiv_{2526} & &{ \begin{pmatrix}1108 \\ 620\end{pmatrix} } & &{ \begin{pmatrix}1104 \\ 400\end{pmatrix} }\\\hline & 1108 & 620 & 1104 & 400\\\hline Message & LI & GU & LE & EA\end{array}\]Le message claire est \( LIGULEEA \) .