By Debmedia Technologies LLP · Kolkata, India · Updated
What Is It and When Do You Need It?
The Vigenère cipher uses a keyword instead of a single shift. A key such as LEMON means that the first letter is shifted by L (11), the second by E (4), the third by M (12), and so on, then the key repeats.
Enter text and a keyword, then choose to encrypt or decrypt.
How to Use This Tool
- Type or paste your text.
- Enter a keyword made of letters.
- Choose encrypt or decrypt.
- Press Run and copy the result.
How the Calculation Works
Each key letter is converted to a number from 0 to 25. For encryption, the message letter plus the key number, modulo 26, gives the cipher letter. For decryption the key number is subtracted. Only letters use up the key, and case is kept.
Worked Example
Encrypting ATTACKATDAWN with the key LEMON gives LXFOPVEFRNHR, the classic test example.
Common Uses
- Puzzles and escape rooms.
- Teaching cryptography.
- Geocaching.
- Studying historical ciphers.
Tips and Common Mistakes
- A longer key is harder to break.
- The key must contain at least one letter.
- Use the Caesar tool for a single shift.
Related Tools
Next, you may need the Caesar cipher, affine cipher, Playfair cipher, XOR cipher.
Everything runs in your browser. Nothing you type is uploaded, stored or sent to any outside service.
Frequently Asked Questions
Disclaimer: results are calculated in your browser from the numbers you enter. Check important results before you rely on them for money, health, safety or legal decisions.