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 \( 7\) modulo \( 26\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}22 & 7 & 23 \\ 4 & 19 & 8 \\ 7 & 18 & 22\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}274 & 260 & -381 \\ -32 & 323 & -84 \\ -61 & -347 & 390\end{pmatrix}\) .
- Déchiffrer le message suivant, crypté par la méthode de Hill par paquet de 1 de clef \( A \) : \[YTGTQIBMWGUW\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
26 & 7 & 5 & 3&3 & -11 \\ \hline
7 & 5 & 2 & 1&-2 & 3 \\ \hline
5 & 2 & 1 & 2&1 & -2 \\ \hline
2 & 1 & 0 & 2&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 7\) est \( 15\) .
- D'après le cours \( det(A)= 4401\equiv_{26}7\) .
- 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}22 & 7 & 23 \\ 4 & 19 & 8 \\ 7 & 18 & 22\end{pmatrix}\begin{pmatrix}274 & 260 & -381 \\ -32 & 323 & -84 \\ -61 & -347 & 390\end{pmatrix}\\
&=& \begin{pmatrix}4401 & 0 & 0 \\ 0 & 4401 & 0 \\ 0 & 0 & 4401\end{pmatrix}\\
&=&4401\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}\\
&\equiv_{26}&7\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}
\end{eqnarray*}
Ainsi \( A\times B\equiv_{26}7Id_{3}\) . Puisque \( 15\) est l'inverse de \( 7\) modulo \( 26\) , on en déduit que \( A\times (15B)\equiv_{26} Id_{3}\) et donc que \( 15B\equiv_{26}A^{-1}\) . En conclusion :
\[ A^{-1}\equiv_{26}15\begin{pmatrix}274 & 260 & -381 \\ -32 & 323 & -84 \\ -61 & -347 & 390\end{pmatrix}\equiv_{26}\begin{pmatrix}2 & 0 & -21 \\ -12 & 9 & -12 \\ -5 & -5 & 0\end{pmatrix}\]
- \[\begin{array}{r|*{12}{|c}} Cryptogramme & Y & T & G & T & Q & I & B & M & W & G & U & W\\\hline Codex & 24 & 19 & 6 & 19 & 16 & 8 & 1 & 12 & 22 & 6 & 20 & 22\\\hline Vecteurs & &&{ \begin{pmatrix}24 \\ 19 \\ 6\end{pmatrix} } & &&{ \begin{pmatrix}19 \\ 16 \\ 8\end{pmatrix} } & &&{ \begin{pmatrix}1 \\ 12 \\ 22\end{pmatrix} } & &&{ \begin{pmatrix}6 \\ 20 \\ 22\end{pmatrix} }\\\hline\begin{pmatrix}2 & 0 & -21 \\ -12 & 9 & -12 \\ -5 & -5 & 0\end{pmatrix} & &&{ \begin{pmatrix}-78 \\ -189 \\ -215\end{pmatrix} } & &&{ \begin{pmatrix}-130 \\ -180 \\ -175\end{pmatrix} } & &&{ \begin{pmatrix}-460 \\ -168 \\ -65\end{pmatrix} } & &&{ \begin{pmatrix}-450 \\ -156 \\ -130\end{pmatrix} }\\\hline\equiv_{26} & &&{ \begin{pmatrix}0 \\ 19 \\ 19\end{pmatrix} } & &&{ \begin{pmatrix}0 \\ 2 \\ 7\end{pmatrix} } & &&{ \begin{pmatrix}8 \\ 14 \\ 13\end{pmatrix} } & &&{ \begin{pmatrix}18 \\ 0 \\ 0\end{pmatrix} }\\\hline & 0 & 19 & 19 & 0 & 2 & 7 & 8 & 14 & 13 & 18 & 0 & 0\\\hline Message & A & T & T & A & C & H & I & O & N & S & A & A\end{array}\]Le message claire est \( ATTACHIONSAA \) .