RU EN ES 中文

Vigenère Cipher

Vigenère table · Secure transmission

How does the cipher work?

+

The Vigenère cipher is a classic polyalphabetic encryption method that uses a shift table and a keyword to protect messages.

1 Preparing the alphabet

The game supports two alphabets: Russian (А-Я, Ё) and English (A–Z). All letters are automatically converted to uppercase. Digits and punctuation marks are not encrypted.

2 Entering the message

Alice enters the original message. Each character is checked against the chosen alphabet. Invalid characters are filtered out automatically.

3 Setting up the key

A keyword is entered — a sequence of letters that will be repeated cyclically under the message. The key length affects cryptographic strength: the longer and more random the key, the harder the cipher is to break.

4 Encryption (step by step)

For each character of the message:

  • The corresponding key letter is found (the key repeats cyclically)
  • In the Vigenère table: row = key letter, column = message letter
  • The encrypted character is found at the intersection
  • Non-letter characters are copied unchanged

Formula: C = (P + K) mod N, where P is the plaintext position, K is the key position, N is the alphabet size.

5 Data transmission

The key is transmitted over a secure channel, the ciphertext over an open one. Even if the ciphertext is intercepted, the message cannot be recovered without the key.

6 Decryption

Bob uses the same key and Vigenère table in reverse order:

  • Row = key letter, the found cell = ciphertext character
  • The column where the cell is located is the original character

Formula: P = (C − K + N) mod N

7 Checking the result

After decryption, the system compares the received text with the original. If they match, the transmission was successful. Visual highlighting of the table helps track every step of the process.

Color legend: ● Plaintext, ● Key, ● Ciphertext

Alice: message

0/50
Only letters of the Russian alphabet (case-insensitive)
Plaintext
Ciphertext
Key