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 \( 17\) modulo \( 26\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}18 & 13 & 3 \\ 1 & 17 & 5 \\ 6 & 4 & 3\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}31 & -27 & 14 \\ 27 & 36 & -87 \\ -98 & 6 & 293\end{pmatrix}\) .
- Déchiffrer le message suivant, crypté par la méthode de Hill par paquet de 1 de clef \( A \) : \[ZXJDDJUEY\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
26 & 17 & 9 & 1&2 & -3 \\ \hline
17 & 9 & 8 & 1&-1 & 2 \\ \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 \( 17\) est \( 23\) .
- D'après le cours \( det(A)= 615\equiv_{26}17\) .
- 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}18 & 13 & 3 \\ 1 & 17 & 5 \\ 6 & 4 & 3\end{pmatrix}\begin{pmatrix}31 & -27 & 14 \\ 27 & 36 & -87 \\ -98 & 6 & 293\end{pmatrix}\\
&=& \begin{pmatrix}615 & 0 & 0 \\ 0 & 615 & 0 \\ 0 & 0 & 615\end{pmatrix}\\
&=&615\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}\\
&\equiv_{26}&17\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}
\end{eqnarray*}
Ainsi \( A\times B\equiv_{26}17Id_{3}\) . Puisque \( 23\) est l'inverse de \( 17\) modulo \( 26\) , on en déduit que \( A\times (23B)\equiv_{26} Id_{3}\) et donc que \( 23B\equiv_{26}A^{-1}\) . En conclusion :
\[ A^{-1}\equiv_{26}23\begin{pmatrix}31 & -27 & 14 \\ 27 & 36 & -87 \\ -98 & 6 & 293\end{pmatrix}\equiv_{26}\begin{pmatrix}11 & -23 & 10 \\ 23 & 22 & -25 \\ -18 & 8 & 5\end{pmatrix}\]
- \[\begin{array}{r|*{9}{|c}} Cryptogramme & Z & X & J & D & D & J & U & E & Y\\\hline Codex & 25 & 23 & 9 & 3 & 3 & 9 & 20 & 4 & 24\\\hline Vecteurs & &&{ \begin{pmatrix}25 \\ 23 \\ 9\end{pmatrix} } & &&{ \begin{pmatrix}3 \\ 3 \\ 9\end{pmatrix} } & &&{ \begin{pmatrix}20 \\ 4 \\ 24\end{pmatrix} }\\\hline\begin{pmatrix}11 & -23 & 10 \\ 23 & 22 & -25 \\ -18 & 8 & 5\end{pmatrix} & &&{ \begin{pmatrix}-164 \\ 856 \\ -221\end{pmatrix} } & &&{ \begin{pmatrix}54 \\ -90 \\ 15\end{pmatrix} } & &&{ \begin{pmatrix}368 \\ -52 \\ -208\end{pmatrix} }\\\hline\equiv_{26} & &&{ \begin{pmatrix}18 \\ 24 \\ 13\end{pmatrix} } & &&{ \begin{pmatrix}2 \\ 14 \\ 15\end{pmatrix} } & &&{ \begin{pmatrix}4 \\ 0 \\ 0\end{pmatrix} }\\\hline & 18 & 24 & 13 & 2 & 14 & 15 & 4 & 0 & 0\\\hline Message & S & Y & N & C & O & P & E & A & A\end{array}\]Le message claire est \( SYNCOPEAA \) .