How it improves on Caesar
A Caesar cipher shifts by a fixed amount, so a letter always becomes the same ciphertext letter and frequency analysis cracks it immediately. Vigenere lets a keyword choose the shift per position: the key KEY means +10, +4, +24 repeating, so position one shifts by 10, two by 4, three by 24, four back to 10. The same plaintext E becomes O, I or C at different points, flattening single-letter frequencies. That is why it looked unbreakable in the sixteenth century.
Steps
- Enter the keyword, such as KEY. Non-letters are ignored.
- Type the plaintext or ciphertext into the text field.
- Click Encrypt, Decrypt, or Run to follow the current mode.
- The keyword must match character for character on decrypt; a different length produces an immediately wrong result.
Case, punctuation and key advance
Case is handled separately within each 26-letter alphabet. Spaces, punctuation, digits and Chinese neither shift nor consume key letters, so Hello, World advances the key only ten times and the comma does not misalign anything. That matters in practice: if you strip punctuation before encrypting and keep it when decrypting, the key falls out of step and everything after it breaks. Keep the text structure identical in both directions.
Why it is still weak
Breaking it takes two steps: find the key length, then solve each column. Length comes from the Kasiski examination, looking at intervals between repeated fragments and taking their greatest common divisor, or from the Friedman index. Once the length is known the cipher splits into several Caesar shifts, each solved by frequency analysis. Short keys fall fastest — a single A degenerates to Caesar — and only a random key as long as the message approaches one-time-pad strength, which nobody manages by hand. For real work use AES.