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 \( 23\) modulo \( 26\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}20 & 7 \\ 23 & 4\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 \) : \[KGNAMXANGF\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
26 & 23 & 3 & 1&8 & -9 \\ \hline
23 & 3 & 2 & 7&-1 & 8 \\ \hline
3 & 2 & 1 & 1&1 & -1 \\ \hline
2 & 1 & 0 & 2&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 23\) est \( 17\) .
- D'après le cours \( det(A)= -81\equiv_{26}23\) .
- La matrice \( A \) est inversible car le déterminant est inversible modulo \( 26\) .
- D'après le cours :
\[ \begin{pmatrix}20 & 7 \\ 23 & 4\end{pmatrix}^{-1} \equiv_{26} 17\begin{pmatrix}4 & -7 \\ -23 & 20\end{pmatrix}
\equiv_{26}\begin{pmatrix}68 & -119 \\ -391 & 340\end{pmatrix}
\equiv_{26}\begin{pmatrix}16 & -15 \\ -1 & 2\end{pmatrix}
\]
- \[\begin{array}{r|*{10}{|c}} Cryptogramme & K & G & N & A & M & X & A & N & G & F\\\hline Codex & 10 & 6 & 13 & 0 & 12 & 23 & 0 & 13 & 6 & 5\\\hline Vecteurs & &{ \begin{pmatrix}10 \\ 6\end{pmatrix} } & &{ \begin{pmatrix}13 \\ 0\end{pmatrix} } & &{ \begin{pmatrix}12 \\ 23\end{pmatrix} } & &{ \begin{pmatrix}0 \\ 13\end{pmatrix} } & &{ \begin{pmatrix}6 \\ 5\end{pmatrix} }\\\hline\begin{pmatrix}16 & -15 \\ -1 & 2\end{pmatrix} & &{ \begin{pmatrix}70 \\ 2\end{pmatrix} } & &{ \begin{pmatrix}208 \\ -13\end{pmatrix} } & &{ \begin{pmatrix}-153 \\ 34\end{pmatrix} } & &{ \begin{pmatrix}-195 \\ 26\end{pmatrix} } & &{ \begin{pmatrix}21 \\ 4\end{pmatrix} }\\\hline\equiv_{26} & &{ \begin{pmatrix}18 \\ 2\end{pmatrix} } & &{ \begin{pmatrix}0 \\ 13\end{pmatrix} } & &{ \begin{pmatrix}3 \\ 8\end{pmatrix} } & &{ \begin{pmatrix}13 \\ 0\end{pmatrix} } & &{ \begin{pmatrix}21 \\ 4\end{pmatrix} }\\\hline & 18 & 2 & 0 & 13 & 3 & 8 & 13 & 0 & 21 & 4\\\hline Message & S & C & A & N & D & I & N & A & V & E\end{array}\]Le message claire est \( SCANDINAVE \) .