IT Market
Tools/Code/Data/Vigenere Cipher Online — Encrypt With a Keyword
Шифр Виженера

Полиалфавитное шифрование с ключевым словом

Tool guide

Vigenere Cipher Online — Encrypt With a Keyword

Instead of one fixed step, the shift for each letter comes from a keyword that repeats along the whole message. The same plaintext letter turns into different ciphertext letters in different positions, so single-letter frequency analysis stops working. People use it for cryptography lab work, for harder puzzle hunts and for reading historical ciphertexts. All the arithmetic happens in your browser. See also: the simpler Caesar shift cipher, a keyless ROT13 substitution, wrap the result in Base64 before sending.

How to use it

  1. Type the message into the Text field; the placeholder shows Hello World.
  2. Enter your keyword in the Key (letters only) field. The placeholder suggests KEY, but a longer key is considerably harder to attack.
  3. Make sure the key has no digits, spaces or punctuation — the field accepts letters only.
  4. Press Encrypt and read the ciphertext in the Result field.
  5. To reverse it, paste the ciphertext, enter the very same key and press Decrypt; a different key yields nonsense.
  6. Take the string with the Copy button.

FAQ

How long should the Vigenere key be?

The longer the better. A three-letter key repeats dozens of times along a message, and the Kasiski examination recovers that period from repeated ciphertext fragments. A key as long as the message itself, and not a dictionary word, makes manual recovery essentially hopeless. Five to eight letters is plenty for coursework.

Why does the key field reject digits and spaces?

Every key letter encodes a numeric shift over the Latin alphabet: A means a shift of zero, B a shift of one, and so on. A digit or a space has no such value, so the Key field is restricted to letters. If your passphrase is several words, simply drop the spaces.

What happens if I decrypt with the wrong key?

You get a string of the same length that is complete gibberish. There is no error message, because the arithmetic is valid for any key. That is exactly why the key must be remembered or stored separately — without it only cryptanalysis recovers the text. Check for typos and case; the key has to match character for character.

Does it encipher Cyrillic text?

No. Only Latin letters are transformed; Cyrillic characters, digits and punctuation pass through unchanged. For an assignment based on the Russian alphabet, transliterate before enciphering, otherwise a large part of the message stays in the clear.

Why is Vigenere stronger than a Caesar shift?

Caesar offers twenty-five keys and falls to a minute of brute force. The Vigenere key space grows exponentially with keyword length, and the same plaintext letter enciphers differently depending on its position, which defeats simple single-letter frequency analysis. By modern standards it is still weak, but it is far harder to break by hand.

Can I use this for work correspondence?

You should not. Vigenere yields to the Kasiski and Friedman methods known since the nineteenth century, and with a short key an automated attack takes minutes. It is a historical teaching cipher. For real protection use modern algorithms and an established end-to-end encrypted messenger.

Examples

Ciphertext for a cryptography lab report
Before: Key KEY, plaintext: ATTACKATDAWN
After: KXRKGIKXBKAL
One letter maps to several ciphertext symbols
Before: Key KEY, plaintext: AAAA
After: KEYK — the repeated A becomes different letters