🔐

Vigenère Cipher

Encode and decode text with the Vigenère polyalphabetic cipher. Includes step-by-step visualization and Vigenère square.

Ciphertext

RIJVS UYVJN

Step-by-Step

#PlainKeyShiftResult
1HK+10R
2EE+4I
3LY+24J
4LK+10V
5OE+4S
6WY+24U
7OK+10Y
8RE+4V
9LY+24J
10DK+10N

Index of Coincidence (IC)

0.0889

English text ≈ 0.0667 | Random text ≈ 0.0385. A high IC on ciphertext suggests a short key or monoalphabetic cipher.

Vigenère vs. Caesar (ROT-N)

A Caesar cipher uses a single shift for all letters (e.g., ROT-13). The Vigenère cipher uses a repeating keyword where each letter defines a different shift, making simple frequency analysis ineffective.

However, if the key length is known, each column can be attacked as a separate Caesar cipher. The Kasiski method and Index of Coincidence help estimate key length.