Vigenère cipher · 02 How it works

Vigenère cipher: how it works

How to encrypt and decrypt with the Vigenère cipher using the square table and the repeated keyword.

  1. 01
    Choose the key

    Sender and recipient agree on a word, for example CIPHER.

  2. 02
    Repeat it under the message

    The key is written under the plaintext, repeated until it covers it all.

  3. 03
    Use the table

    For each letter, look at the row of the key letter and the column of the plaintext letter: the cipher letter is at the intersection.

  4. 04
    Or count

    Equivalently, shift the plaintext letter forward by as many positions as the key letter is worth: A shifts by 0, B by 1, C by 2 and so on.

  5. 05
    Decrypt

    The recipient does the reverse: shifts each ciphertext letter backwards according to the key.

The square table

terminale
    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   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   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   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   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
…   each row is shifted one position relative to the previous one
Continue with
03 Worked example

Vigenère cipher: worked example

Step-by-step encryption of the message “meet me at the bridge” with the key CIPHER, letter by letter.

↑