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 \( 23\) modulo \( 26\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}11 & 25 & 14 \\ 22 & 15 & 10 \\ 19 & 22 & 11\end{pmatrix}\) .
- Expliquer pourquoi la matrice \( A \) est inversible modulo \( 26\) .
- 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}-55 & 33 & 40 \\ -52 & -145 & 198 \\ 199 & 233 & -385\end{pmatrix}\) .
- Déchiffrer le message suivant, crypté par la méthode de Hill par paquet de 1 de clef \( A \) : \[DBQEBFKFBFKL\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
26 & 23 & 3 & 1&8 & -9 \\ \hline
23 & 3 & 2 & 7&-1 & 8 \\ \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 \( 23\) est \( 17\) .
- D'après le cours \( det(A)= 881\equiv_{26}23\) .
- La matrice \( A \) est inversible car le déterminant est inversible modulo \( 26\) .
- Réalisation le produit suggéré par l'énoncé :
\begin{eqnarray*}
A\times B
&=& \begin{pmatrix}11 & 25 & 14 \\ 22 & 15 & 10 \\ 19 & 22 & 11\end{pmatrix}\begin{pmatrix}-55 & 33 & 40 \\ -52 & -145 & 198 \\ 199 & 233 & -385\end{pmatrix}\\
&=& \begin{pmatrix}881 & 0 & 0 \\ 0 & 881 & 0 \\ 0 & 0 & 881\end{pmatrix}\\
&=&881\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}\\
&\equiv_{26}&23\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}
\end{eqnarray*}
Ainsi \( A\times B\equiv_{26}23Id_{3}\) . Puisque \( 17\) est l'inverse de \( 23\) modulo \( 26\) , on en déduit que \( A\times (17B)\equiv_{26} Id_{3}\) et donc que \( 17B\equiv_{26}A^{-1}\) . En conclusion :
\[ A^{-1}\equiv_{26}17\begin{pmatrix}-55 & 33 & 40 \\ -52 & -145 & 198 \\ 199 & 233 & -385\end{pmatrix}\equiv_{26}\begin{pmatrix}-25 & 15 & 4 \\ 0 & -21 & 12 \\ 3 & 9 & -19\end{pmatrix}\]
- \[\begin{array}{r|*{12}{|c}} Cryptogramme & D & B & Q & E & B & F & K & F & B & F & K & L\\\hline Codex & 3 & 1 & 16 & 4 & 1 & 5 & 10 & 5 & 1 & 5 & 10 & 11\\\hline Vecteurs & &&{ \begin{pmatrix}3 \\ 1 \\ 16\end{pmatrix} } & &&{ \begin{pmatrix}4 \\ 1 \\ 5\end{pmatrix} } & &&{ \begin{pmatrix}10 \\ 5 \\ 1\end{pmatrix} } & &&{ \begin{pmatrix}5 \\ 10 \\ 11\end{pmatrix} }\\\hline\begin{pmatrix}-25 & 15 & 4 \\ 0 & -21 & 12 \\ 3 & 9 & -19\end{pmatrix} & &&{ \begin{pmatrix}4 \\ 171 \\ -286\end{pmatrix} } & &&{ \begin{pmatrix}-65 \\ 39 \\ -74\end{pmatrix} } & &&{ \begin{pmatrix}-171 \\ -93 \\ 56\end{pmatrix} } & &&{ \begin{pmatrix}69 \\ -78 \\ -104\end{pmatrix} }\\\hline\equiv_{26} & &&{ \begin{pmatrix}4 \\ 15 \\ 0\end{pmatrix} } & &&{ \begin{pmatrix}13 \\ 13 \\ 4\end{pmatrix} } & &&{ \begin{pmatrix}11 \\ 11 \\ 4\end{pmatrix} } & &&{ \begin{pmatrix}17 \\ 0 \\ 0\end{pmatrix} }\\\hline & 4 & 15 & 0 & 13 & 13 & 4 & 11 & 11 & 4 & 17 & 0 & 0\\\hline Message & E & P & A & N & N & E & L & L & E & R & A & A\end{array}\]Le message claire est \( EPANNELLERAA \) .