Vigenère Cipher
Encrypt and decrypt polyalphabetic substitution ciphers using custom keyword strings and the historical 26×26 Vigenère tabula recta.
상세 계산 과정
Vigenère Cipher 소개 및 원리
The Vigenère cipher is a famous polyalphabetic substitution cipher that resisted cryptanalysis for over three centuries, earning the historical moniker "le chiffre indéchiffrable" (the indecipherable cipher). Originally described by Giovan Battista Bellaso in 1553 and later misattributed to Blaise de Vigenère in the 19th century, it dramatically improves upon the Caesar cipher by using a repeating secret keyword.
Instead of shifting every letter by the same constant value, the Vigenère cipher applies a different Caesar shift to each consecutive character based on the corresponding letter of the keyword. For instance, using keyword "KEY", the first letter shifts by K (10), the second by E (4), and the third by Y (24), repeating cyclically.
This polyalphabetic rotation flattens natural English letter frequencies, preventing simple single-letter frequency analysis from breaking the code.
도구 사용 방법
- 입력 필드에 변환할 값 또는 텍스트를 입력합니다.
- 필요에 따라 변환 옵션 및 방향을 설정합니다.
- 변환 결과가 실시간으로 즉시 생성됩니다.
- 복사 버튼을 클릭하여 결과를 클립보드에 복사합니다.
How the Vigenère Cipher Works
Let $P_i$ be the index of the $i$-th plaintext letter and $K_i$ be the index of the repeated keyword letter ($0 \le P_i, K_i \le 25$):
Encryption: $C_i = (P_i + K_{i \bmod m}) \pmod{26}$
Decryption: $P_i = (C_i - K_{i \bmod m} + 26) \pmod{26}$
This corresponds to finding the intersection of the plaintext column and keyword row in the $26 \times 26$ tabula recta grid.
Vigenère Cipher Examples
Encryption with Key "KEY"
Encrypting "HELLO WORLD" with repeating key "KEYKEYKEYK".
Decryption with Key "KEY"
Deciphering "RIJVS UYVJN" back to "HELLO WORLD".
Key Repeating & Kasiski Examination
- When the keyword is short compared to the message, repeating letter patterns occur at intervals equal to the keyword length (exploited by Kasiski examination and the Friedman test).
- If the keyword is truly random, never reused, and as long as the message, the cipher becomes an unbreakable One-Time Pad.
자주 묻는 질문
How does the Vigenère cipher encrypt and decrypt?
How do Vigenère ciphers work?
How do you decode a Vigenère cipher?
Is the Vigenère cipher hard to crack?
How to write a Vigenère cipher?
How can a Vigenère cipher be broken?
Who invented the Vigenère cipher?
Can you explain the Vigenère cipher simply?
관련 도구
Shift letters along the Latin alphabet by a configurable key offset (1–25).
Monoalphabetic substitution cipher where the alphabet is mapped onto its reverse (A ↔ Z, B ↔ Y).
Simulate the WWII German Enigma M3 rotor cipher machine with authentic stepping, reflectors, and plugboard.