Algorythme de Vigenere

On pourrait bien entendu attaquer le cryptage de plus haut dans le temps.En effet,des l'epoque de Henri III,un jeune ingenieur,Blaise de Vigenere,inventa pour crypter et decrypter un message,une table qui porte desormais son nom.

La table de Vigenere

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
B C D E F G H I J K L M N O P Q R S T U V W X Y Z A
C D E F G H I J K L M N O P Q R S T U V W X Y Z A B
D E F G H I J K L M N O P Q R S T U V W X Y Z A B C
E F G H I J K L M N O P Q R S T U V W X Y Z A B C D
F G H I J K L M N O P Q R S T U V W X Y Z A B C D E
G H I J K L M N O P Q R S T U V W X Y Z A B C D E F
H I J K L M N O P Q R S T U V W X Y Z A B C D E F G
I J K L M N O P Q R S T U V W X Y Z A B C D E F G H
J K L M N O P Q R S T U V W X Y Z A B C D E F G H I
K L M N O P Q R S T U V W X Y Z A B C D E F G H I J
L M N O P Q R S T U V W X Y Z A B C D E F G H I J K
M N O P Q R S T U V W X Y Z A B C D E F G H I J K L
N O P Q R S T U V W X Y Z A B C D E F G H I J K L M
O P Q R S T U V W X Y Z A B C D E F G H I J K L M N
P Q R S T U V W X Y Z A B C D E F G H I J K L M N O
Q R S T U V W X Y Z A B C D E F G H I J K L M N O P
R S T U V W X Y Z A B C D E F G H I J K L M N O P Q
S T U V W X Y Z A B C D E F G H I J K L M N O P Q R
T U V W X Y Z A B C D E F G H I J K L M N O P Q R S
U V W X Y Z A B C D E F G H I J K L M N O P Q R S T
V W X Y Z A B C D E F G H I J K L M N O P Q R S T U
W X Y Z A B C D E F G H I J K L M N O P Q R S T U V
X Y Z A B C D E F G H I J K L M N O P Q R S T U V W
Y Z A B C D E F G H I J K L M N O P Q R S T U V W X
Z A B C D E F G H I J K L M N O P Q R S T U V W X Y

Examinons un peu cette table.A priori rien de complique.C'est une table de 26 sur 26 cases.Chaque case porte une lettre et celle qui suit est l'incrementation de celle ci (ouf).Voila ce qu'etait la table de Vigenere.

Methode de Cryptage par cette table

Cette methode est simple.Le cryptage se fait avec 2 elements essentiels.
-Le mot de passe
-Le message a crypter
Ici nous allons essayer de crypter le message "Christal,Lutin Noir et MInoTHauR" avec le mot cle CRYPTO.Voila comment nous procedons
1-On se pose sur la colonne signalée en haut par un C
2-On descend jusqu’à la ligne au début de laquelle se trouve la lettre M
3-On note la lettre situe a l'intersection des 2.(ici c'est un O)
4-On fait cela autant de fois qu'il y a de lettres dans le message et quand le mot de passe arrive a la fin on recommence avec au debut.

Methode de Decryptage par cette table

On fait le contraire 1-On se pose sur la colonne signalee par la lettre C
2-On descend jusqu'a qu'on trouve la lettre du message code
3-On regarde en face.C'est la lettre du message non crypte
4-On fait cela autant de fois qu'il y a de lettres dans le message et quand le mot de passe arrive a la fin on recommence avec au debut. Bien sur le nombre de fois que le cryptage peut etre fait n'est pas exhaustif.Comme quoi un bon cryptage n'est pas forcement fe avec du rsa ou autre.