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}1753 & 2252 \\ 964 & 883\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 \) : \[2387-301-2247-2012-1690-2500\]
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)= -623029\equiv_{2526}893\) .
- La matrice \( A \) est inversible car le déterminant est inversible modulo \( 2526\) .
- D'après le cours :
\[ \begin{pmatrix}1753 & 2252 \\ 964 & 883\end{pmatrix}^{-1} \equiv_{2526} 809\begin{pmatrix}883 & -2252 \\ -964 & 1753\end{pmatrix}
\equiv_{2526}\begin{pmatrix}714347 & -1821868 \\ -779876 & 1418177\end{pmatrix}
\equiv_{2526}\begin{pmatrix}2015 & -622 \\ -1868 & 1091\end{pmatrix}
\]
- \[\begin{array}{r|*{6}{|c}} Cryptogramme & 2387 & 301 & 2247 & 2012 & 1690 & 2500\\\hline Vecteurs & &{ \begin{pmatrix}2387 \\ 301\end{pmatrix} } & &{ \begin{pmatrix}2247 \\ 2012\end{pmatrix} } & &{ \begin{pmatrix}1690 \\ 2500\end{pmatrix} }\\\hline\begin{pmatrix}2015 & -622 \\ -1868 & 1091\end{pmatrix} & &{ \begin{pmatrix}4622583 \\ -4130525\end{pmatrix} } & &{ \begin{pmatrix}3276241 \\ -2002304\end{pmatrix} } & &{ \begin{pmatrix}1850350 \\ -429420\end{pmatrix} }\\\hline\equiv_{2526} & &{ \begin{pmatrix}3 \\ 2011\end{pmatrix} } & &{ \begin{pmatrix}19 \\ 814\end{pmatrix} } & &{ \begin{pmatrix}1318 \\ 0\end{pmatrix} }\\\hline & 3 & 2011 & 19 & 814 & 1318 & 0\\\hline Message & AD & UL & AT & IO & NS & AA\end{array}\]Le message claire est \( ADULATIONSAA \) .