Toolstia / Vigenère cipher
Vigenère cipher
Encrypt a message with a keyword or decrypt one when you know the key. The Vigenère cipher shifts each letter by an amount taken from the repeating keyword, which makes it much harder to crack by hand than a single Caesar shift.
Each letter is shifted by the matching letter of the repeating key, where A means no shift and B means one. Case is kept and anything that is not a letter is left alone and does not use up a key letter. It was called unbreakable for centuries, but it is easy to crack today, so use it for puzzles and learning only.
How it works
- Type the message and the keyword.
- Choose encrypt or decrypt.
- Copy the result.
How it works
Each letter of the key is a shift: A is 0, B is 1 and so on. The key repeats along the message and each message letter moves forward by its key letter.
Example
ATTACKATDAWN with the key LEMON becomes LXFOPVEFRNHR.
Non-letters
Spaces, digits and punctuation are kept and do not use up a key letter. Capital and small letters keep their case.
Security
It is a historical cipher, broken in the 19th century. Use it for puzzles and learning, never for real secrets.
Questions
What if I do not know the key?
You cannot decrypt without it here. Breaking it needs frequency analysis of the key length.
Is it private?
Yes. Everything happens in your browser, and nothing you enter is sent anywhere.
How is it different from Caesar?
Caesar uses one shift for the whole message. Vigenère uses a different shift for each position.