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 \( 9\) modulo \( 26\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}15 & 19 & 7 \\ 23 & 16 & 4 \\ 2 & 18 & 17\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}200 & -197 & -36 \\ -383 & 241 & 101 \\ 382 & -232 & -197\end{pmatrix}\) .
- Déchiffrer le message suivant, crypté par la méthode de Hill par paquet de 1 de clef \( A \) : \[KYYOBKQCQ\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
26 & 9 & 8 & 2&-1 & 3 \\ \hline
9 & 8 & 1 & 1&1 & -1 \\ \hline
8 & 1 & 0 & 8&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 9\) est \( 3\) .
- D'après le cours \( det(A)= -1603\equiv_{26}9\) .
- 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}15 & 19 & 7 \\ 23 & 16 & 4 \\ 2 & 18 & 17\end{pmatrix}\begin{pmatrix}200 & -197 & -36 \\ -383 & 241 & 101 \\ 382 & -232 & -197\end{pmatrix}\\
&=& \begin{pmatrix}-1603 & 0 & 0 \\ 0 & -1603 & 0 \\ 0 & 0 & -1603\end{pmatrix}\\
&=&-1603\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}\\
&\equiv_{26}&9\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}
\end{eqnarray*}
Ainsi \( A\times B\equiv_{26}9Id_{3}\) . Puisque \( 3\) est l'inverse de \( 9\) modulo \( 26\) , on en déduit que \( A\times (3B)\equiv_{26} Id_{3}\) et donc que \( 3B\equiv_{26}A^{-1}\) . En conclusion :
\[ A^{-1}\equiv_{26}3\begin{pmatrix}200 & -197 & -36 \\ -383 & 241 & 101 \\ 382 & -232 & -197\end{pmatrix}\equiv_{26}\begin{pmatrix}2 & -19 & -4 \\ -5 & 21 & 17 \\ 2 & -20 & -19\end{pmatrix}\]
- \[\begin{array}{r|*{9}{|c}} Cryptogramme & K & Y & Y & O & B & K & Q & C & Q\\\hline Codex & 10 & 24 & 24 & 14 & 1 & 10 & 16 & 2 & 16\\\hline Vecteurs & &&{ \begin{pmatrix}10 \\ 24 \\ 24\end{pmatrix} } & &&{ \begin{pmatrix}14 \\ 1 \\ 10\end{pmatrix} } & &&{ \begin{pmatrix}16 \\ 2 \\ 16\end{pmatrix} }\\\hline\begin{pmatrix}2 & -19 & -4 \\ -5 & 21 & 17 \\ 2 & -20 & -19\end{pmatrix} & &&{ \begin{pmatrix}-532 \\ 862 \\ -916\end{pmatrix} } & &&{ \begin{pmatrix}-31 \\ 121 \\ -182\end{pmatrix} } & &&{ \begin{pmatrix}-70 \\ 234 \\ -312\end{pmatrix} }\\\hline\equiv_{26} & &&{ \begin{pmatrix}14 \\ 4 \\ 20\end{pmatrix} } & &&{ \begin{pmatrix}21 \\ 17 \\ 0\end{pmatrix} } & &&{ \begin{pmatrix}8 \\ 0 \\ 0\end{pmatrix} }\\\hline & 14 & 4 & 20 & 21 & 17 & 0 & 8 & 0 & 0\\\hline Message & O & E & U & V & R & A & I & A & A\end{array}\]Le message claire est \( OEUVRAIAA \) .