Carré de Vigenère : Codage et décodage

Le chiffre de Vigenère est une amélioration du chiffre de César. Sa force réside dans l'utilisation non pas d'un, mais des 26 caractères de l'alphabets décalés pour chiffrer un message. On peut résumer ces décalages avec un carré de Vigenère. Ce chiffre utilise une clef qui définit le décalage pour chaque lettre du message (A: décalage de 0 cran, B: 1 cran, C: 2 crans, ..., Z: 25 crans).

 
Saisissez ou récupérez votre phrase décodée  (Entrez un message non accentué)  
 

Décryptage
Clef
Cryptage

Saisissez ou récupérez votre phrase codée (Entrez un message non accentué)   
Exemple : Chiffrons le texte "CHIFFRE DE VIGENERE" avec la clef "TOURISTOS" (cette clef est éventuellement répétée plusieurs fois pour être aussi longue que le texte clair).

Clair C H I F F R E D E V I G E N E R E
Clef T O U R I S T O S T O U R I S T O
Décalage 19 14 20 17 8 18 19 14 18 19 14 20 17 8 18 19 14
Chiffré V V C W N J X R W O W A V V W K S

Carré de Vigenère

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
A = 0
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 = 1
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 = 2
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 = 3
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 = 4
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 = 5
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 = 6
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 = 7
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 = 8
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 = 9
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 = 10
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 = 11
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 = 12
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 = 13
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 = 14
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 = 15
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 = 16
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 = 17
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 = 18
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 = 19
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 = 20
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 = 21
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 = 22
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 = 23
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 = 24
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 = 25
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
Version moderne du carr é de Vigenère

Vigenère (chiffré = clair + clef)

La lettre de la clef est dans la colonne la plus à gauche, la lettre du message clair est dans la ligne tout en haut. La lettre chiffrée est à l'intersection de la ligne de la lettre clef et de la colonne de la lettre claire.
clair    MONMESSAGE
clef     MACLEFMACL
chiffré  YOPXIXEAIP

Pour chiffrer Pour déchiffrer Exemple

Réglette de Saint-Cyr

La réglette de Saint-Cyr permet de faire des substitutions monoalphabétiques. Ces alignements alphabétiques ne sont pas sans évoquer le carré de Vigenère. On peut donc aussi, avec plus de manipulations, utiliser la réglette pour faire des substitutions polyalphabétiques. D'ailleurs, dans la pratique, la réglette de Saint-Cyr a remplacé le carré de Vigenère, car ce dernier est souvent sujet à erreurs.


 

Par exemple, si l'on veut chiffrer un message selon le chiffre de Vigenère avec le mot-clef "FEU", on chiffrera les lettres no 1, 4, 7, 10, ... en positionnant le "F" du coulisseau sous le "A" du stator (voir dessin ci-dessus), les lettres no 2, 5, 8, 11, ... avec le réglage ci-dessous :

et les lettres no 3, 6, 9, 12, ... avec le réglage ci-dessous:

Ainsi, le message "SAINT CYR" sera chiffré "XECSX WDV".