비즈네르 암호
비즈네르 암호로 텍스트를 암호화·복호화하고 고전 암호를 탐구하세요.
이 도구에 대해
비즈네르 암호의 인터랙티브 표, 카이사르 암호(이동 1~25), ROT13, Atbash를 포함한 완전한 고전 암호 툴킷입니다. 비즈네르 모드는 26×26 표를 시각화하고, 활성 키 문자를 강조하며, 단계별 인코딩 표를 보여줍니다. 내장된 '크랙하기' 빈도 분석 도구는 알 수 없는 비즈네르 키를 해독하는 데 도움이 됩니다.
사용 방법
- 1 1단계: 암호 모드 탭을 선택하세요: 비즈네르, 카이사르, ROT13 또는 Atbash.
- 2 2단계: 평문(또는 암호문)을 입력하고, 비즈네르/카이사르의 경우 키워드 또는 이동 값을 제공하세요.
- 3 3단계: 암호화 또는 복호화를 클릭하세요. 결과가 단계별 문자 표와 함께 즉시 표시됩니다.
- 4 4단계: 비즈네르의 경우, '크랙하기' 탭을 사용하여 빈도 분석을 실행하고 예상 영어 빈도와 문자 분포를 비교하세요.
The idea that makes Vigenère stronger than Caesar
A Caesar cipher shifts every letter by the same fixed amount, so the letter E always becomes the same ciphertext letter. That single, constant shift is its fatal weakness: count the letters and the most common one is almost certainly E in disguise. The Vigenère cipher defeats this by using a repeating keyword so that each position is shifted by a different amount. It is a polyalphabetic cipher — it uses many shift alphabets instead of one — which is why the same plaintext letter can encrypt to several different ciphertext letters depending on where it sits.
How the keyword drives the shifts
Write your keyword repeatedly above the message, one key letter per plaintext letter. Each key letter selects a shift: A shifts by 0, B by 1, C by 2, and so on up to Z by 25. To encrypt, add the key letter's shift to the plaintext letter (wrapping around past Z back to A). To decrypt, subtract it. Crucially, the key index advances only on alphabetic characters — spaces, digits, and punctuation pass through untouched and do not consume a key letter, and letter case is preserved. This tool visualizes the whole process with the classic 26×26 tableau (the Vigenère square), highlighting the columns that belong to your key, and prints a step-by-step table of the first 40 letters showing plaintext, key letter, shift, and result.
A worked example
Encrypt HELLO with the keyword KEY. The repeating key is K E Y K E, giving shifts 10, 4, 24, 10, 4:
H(7) + 10 = 17 → RE(4) + 4 = 8 → IL(11) + 24 = 35 mod 26 = 9 → JL(11) + 10 = 21 → VO(14) + 4 = 18 → S
So HELLO becomes RIJVS. Notice the two Ls encrypted to different letters (J and V) because they fell under different key letters — exactly the property that hides the frequency fingerprint a Caesar cipher leaves behind.
The three companion ciphers
- Caesar: a single fixed shift from 1 to 25. Simple, and its own family of 25 possible keys makes it trivially breakable by trying them all.
- ROT13: a Caesar cipher locked to a shift of 13. Because 13 is exactly half of 26, applying it twice returns the original — it is its own inverse, which is why it is used to lightly hide spoilers, not to secure anything.
- Atbash: mirrors the alphabet so
A↔Z,B↔Y, and so on. It needs no key and is also self-inverse.
How the "Crack It" analysis works
For centuries Vigenère was called le chiffre indéchiffrable ("the undecipherable cipher") until cryptanalysts learned to attack the key length. The Crack It tab gives you the two classic tools. First, a letter-frequency chart overlays your ciphertext's observed letter distribution against expected English frequencies; when a guessed key length is correct, slicing the text into columns makes each column's distribution start to resemble English. Second, it computes the Index of Coincidence (IC) — the probability that two randomly chosen letters match. English text has an IC near 0.065; uniformly random text sits near 0.038. A high IC points to a monoalphabetic cipher (Caesar or a very short key); a low IC signals a longer polyalphabetic key. The tool reports the value and a plain-language hint to steer your next guess.
Practical tips and honest limits
- Longer, word-free keys are stronger. A key as long as the message, never reused, is the unbreakable one-time pad. A short dictionary word is the easiest to crack.
- Mind what survives. Spaces and punctuation are preserved and can leak word lengths. For tougher puzzles, strip spaces and group the output into fixed blocks of five.
- It is a learning toy, not security. Vigenère has been breakable since the 19th century. Use it for puzzles, escape rooms, classroom demonstrations, and CTF challenges — never to protect real secrets, for which you should use modern encryption.