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 \( 25\) modulo \( 26\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}17 & 9 \\ 11 & 18\end{pmatrix}\) .
- Expliquer pourquoi la matrice \( A \) est inversible modulo \( 26\) .
- Déterminer l'inverse de la matrice \( A \) .
- Déchiffrer le message suivant, crypté par la méthode de Hill par paquet de 1 de clef \( A \) : \[SDNYBASWQS\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
26 & 25 & 1 & 1&1 & -1 \\ \hline
25 & 1 & 0 & 25&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 25\) est \( 25\) .
- D'après le cours \( det(A)= 207\equiv_{26}25\) .
- La matrice \( A \) est inversible car le déterminant est inversible modulo \( 26\) .
- D'après le cours :
\[ \begin{pmatrix}17 & 9 \\ 11 & 18\end{pmatrix}^{-1} \equiv_{26} 25\begin{pmatrix}18 & -9 \\ -11 & 17\end{pmatrix}
\equiv_{26}\begin{pmatrix}450 & -225 \\ -275 & 425\end{pmatrix}
\equiv_{26}\begin{pmatrix}8 & -17 \\ -15 & 9\end{pmatrix}
\]
- \[\begin{array}{r|*{10}{|c}} Cryptogramme & S & D & N & Y & B & A & S & W & Q & S\\\hline Codex & 18 & 3 & 13 & 24 & 1 & 0 & 18 & 22 & 16 & 18\\\hline Vecteurs & &{ \begin{pmatrix}18 \\ 3\end{pmatrix} } & &{ \begin{pmatrix}13 \\ 24\end{pmatrix} } & &{ \begin{pmatrix}1 \\ 0\end{pmatrix} } & &{ \begin{pmatrix}18 \\ 22\end{pmatrix} } & &{ \begin{pmatrix}16 \\ 18\end{pmatrix} }\\\hline\begin{pmatrix}8 & -17 \\ -15 & 9\end{pmatrix} & &{ \begin{pmatrix}93 \\ -243\end{pmatrix} } & &{ \begin{pmatrix}-304 \\ 21\end{pmatrix} } & &{ \begin{pmatrix}8 \\ -15\end{pmatrix} } & &{ \begin{pmatrix}-230 \\ -72\end{pmatrix} } & &{ \begin{pmatrix}-178 \\ -78\end{pmatrix} }\\\hline\equiv_{26} & &{ \begin{pmatrix}15 \\ 17\end{pmatrix} } & &{ \begin{pmatrix}8 \\ 21\end{pmatrix} } & &{ \begin{pmatrix}8 \\ 11\end{pmatrix} } & &{ \begin{pmatrix}4 \\ 6\end{pmatrix} } & &{ \begin{pmatrix}4 \\ 0\end{pmatrix} }\\\hline & 15 & 17 & 8 & 21 & 8 & 11 & 4 & 6 & 4 & 0\\\hline Message & P & R & I & V & I & L & E & G & E & A\end{array}\]Le message claire est \( PRIVILEGEA \) .