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 \( 19\) modulo \( 26\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}4 & 0 & 13 \\ 18 & 9 & 5 \\ 11 & 13 & 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}34 & 169 & -117 \\ -143 & -99 & 214 \\ 135 & -52 & 36\end{pmatrix}\) .
- Déchiffrer le message suivant, crypté par la méthode de Hill par paquet de 1 de clef \( A \) : \[IBOVJDERB\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
26 & 19 & 7 & 1&-8 & 11 \\ \hline
19 & 7 & 5 & 2&3 & -8 \\ \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 \( 19\) est \( 11\) .
- D'après le cours \( det(A)= 1891\equiv_{26}19\) .
- 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}4 & 0 & 13 \\ 18 & 9 & 5 \\ 11 & 13 & 11\end{pmatrix}\begin{pmatrix}34 & 169 & -117 \\ -143 & -99 & 214 \\ 135 & -52 & 36\end{pmatrix}\\
&=& \begin{pmatrix}1891 & 0 & 0 \\ 0 & 1891 & 0 \\ 0 & 0 & 1891\end{pmatrix}\\
&=&1891\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}\\
&\equiv_{26}&19\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}
\end{eqnarray*}
Ainsi \( A\times B\equiv_{26}19Id_{3}\) . Puisque \( 11\) est l'inverse de \( 19\) modulo \( 26\) , on en déduit que \( A\times (11B)\equiv_{26} Id_{3}\) et donc que \( 11B\equiv_{26}A^{-1}\) . En conclusion :
\[ A^{-1}\equiv_{26}11\begin{pmatrix}34 & 169 & -117 \\ -143 & -99 & 214 \\ 135 & -52 & 36\end{pmatrix}\equiv_{26}\begin{pmatrix}10 & 13 & -13 \\ -13 & -23 & 14 \\ 3 & 0 & 6\end{pmatrix}\]
- \[\begin{array}{r|*{9}{|c}} Cryptogramme & I & B & O & V & J & D & E & R & B\\\hline Codex & 8 & 1 & 14 & 21 & 9 & 3 & 4 & 17 & 1\\\hline Vecteurs & &&{ \begin{pmatrix}8 \\ 1 \\ 14\end{pmatrix} } & &&{ \begin{pmatrix}21 \\ 9 \\ 3\end{pmatrix} } & &&{ \begin{pmatrix}4 \\ 17 \\ 1\end{pmatrix} }\\\hline\begin{pmatrix}10 & 13 & -13 \\ -13 & -23 & 14 \\ 3 & 0 & 6\end{pmatrix} & &&{ \begin{pmatrix}-89 \\ 69 \\ 108\end{pmatrix} } & &&{ \begin{pmatrix}288 \\ -438 \\ 81\end{pmatrix} } & &&{ \begin{pmatrix}248 \\ -429 \\ 18\end{pmatrix} }\\\hline\equiv_{26} & &&{ \begin{pmatrix}15 \\ 17 \\ 4\end{pmatrix} } & &&{ \begin{pmatrix}2 \\ 4 \\ 3\end{pmatrix} } & &&{ \begin{pmatrix}14 \\ 13 \\ 18\end{pmatrix} }\\\hline & 15 & 17 & 4 & 2 & 4 & 3 & 14 & 13 & 18\\\hline Message & P & R & E & C & E & D & O & N & S\end{array}\]Le message claire est \( PRECEDONS \) .