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 \( 1721\) modulo \( 2526\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}1555 & 652 \\ 907 & 1551\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 \) : \[1677-1535-1822-366-192-804\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
2526 & 1721 & 805 & 1&62 & -91 \\ \hline
1721 & 805 & 111 & 2&-29 & 62 \\ \hline
805 & 111 & 28 & 7&4 & -29 \\ \hline
111 & 28 & 27 & 3&-1 & 4 \\ \hline
28 & 27 & 1 & 1&1 & -1 \\ \hline
27 & 1 & 0 & 27&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 1721\) est \( 2435\) .
- D'après le cours \( det(A)= 1820441\equiv_{2526}1721\) .
- La matrice \( A \) est inversible car le déterminant est inversible modulo \( 2526\) .
- D'après le cours :
\[ \begin{pmatrix}1555 & 652 \\ 907 & 1551\end{pmatrix}^{-1} \equiv_{2526} 2435\begin{pmatrix}1551 & -652 \\ -907 & 1555\end{pmatrix}
\equiv_{2526}\begin{pmatrix}3776685 & -1587620 \\ -2208545 & 3786425\end{pmatrix}
\equiv_{2526}\begin{pmatrix}315 & -1292 \\ -821 & 2477\end{pmatrix}
\]
- \[\begin{array}{r|*{6}{|c}} Cryptogramme & 1677 & 1535 & 1822 & 366 & 192 & 804\\\hline Vecteurs & &{ \begin{pmatrix}1677 \\ 1535\end{pmatrix} } & &{ \begin{pmatrix}1822 \\ 366\end{pmatrix} } & &{ \begin{pmatrix}192 \\ 804\end{pmatrix} }\\\hline\begin{pmatrix}315 & -1292 \\ -821 & 2477\end{pmatrix} & &{ \begin{pmatrix}-1454965 \\ 2425378\end{pmatrix} } & &{ \begin{pmatrix}101058 \\ -589280\end{pmatrix} } & &{ \begin{pmatrix}-978288 \\ 1833876\end{pmatrix} }\\\hline\equiv_{2526} & &{ \begin{pmatrix}11 \\ 418\end{pmatrix} } & &{ \begin{pmatrix}18 \\ 1804\end{pmatrix} } & &{ \begin{pmatrix}1800 \\ 0\end{pmatrix} }\\\hline & 11 & 418 & 18 & 1804 & 1800 & 0\\\hline Message & AL & ES & AS & SE & SA & AA\end{array}\]Le message claire est \( ALESASSESAAA \) .