Pour tous les décalages de l'alphabet :
Notez bien qu'il faut s'entendre sur le moment où "A vaut K", c'est-à-dire, le vaut-il au moment où l'on code le message ou au moment du décodage?
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 (ligne du message en clair)
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 (ligne du message codé)
Exemple : ALLO devient KVVY (Quand A vaut K au moment du codage)
Un autre cas célèbre du décalage de l'alphabet est le code "César" , où A = D, qui aurait été utilisé, paraît-il, par ce vieux Jules...
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 (message en clair)
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 (message codé)
Exemple : ALLO devient DOOR
Cette expression sert à retenir "l'E pour i", donc :
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 (ligne du message en clair)
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 (ligne du message codé)
Exemple : ALLO devient EPPS
On pourrait ainsi aussi nommer le code pays (P = I) :
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 (ligne du message en clair)
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 (ligne du message codé)
Avec le code télévision (TV : T=V) ou "Bande dessinée" (B=D) :
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 (ligne du message en clair)
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 (ligne du message codé)
Avec le code cassé (K=C) :
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 (ligne du message en clair)
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 (ligne du message codé)