시저 암호 (카이사르 암호)
고대 로마의 알파벳 시프트 치환 암호(1~25 시프트)로 암호화 및 복호화를 수행합니다.
상세 계산 과정
시저 암호 (카이사르 암호) 소개 및 원리
The Caesar cipher is one of the earliest and most widely recognized monoalphabetic substitution ciphers in history. Named after Julius Caesar, who used it with a shift of three ($k = 3$) to protect sensitive military communications during the Gallic Wars, the cipher operates by shifting every letter in the plaintext by a fixed number of positions down the alphabet.
For example, with a shift of 3: "A" becomes "D", "B" becomes "E", "X" wraps around to "A", and "Z" wraps around to "C". Under this rule, the secret message "HELLO" is encrypted as "KHOOR".
Because the standard Latin alphabet contains only 26 letters, there are only 25 meaningful non-zero shift keys. Our Caesar cipher solver enables you to encrypt with any chosen shift key, decode messages with known keys, or brute-force all 25 shift possibilities simultaneously.
도구 사용 방법
- 입력 필드에 변환할 값 또는 텍스트를 입력합니다.
- 필요에 따라 변환 옵션 및 방향을 설정합니다.
- 변환 결과가 실시간으로 즉시 생성됩니다.
- 복사 버튼을 클릭하여 결과를 클립보드에 복사합니다.
Mathematical Formula for Caesar Cipher
The Caesar cipher is expressed mathematically through modular arithmetic on integers 0 through 25 (where A=0, B=1, ... Z=25):
Encryption: $E_k(x) = (x + k) \pmod{26}$
Decryption: $D_k(x) = (x - k) \pmod{26} = (x + 26 - k) \pmod{26}$
Non-alphabetic characters (such as numbers, spaces, and punctuation marks) are preserved without modification.
Caesar Cipher Examples
Historical Julius Caesar Shift (Shift = 3)
Standard military shift used in ancient Rome.
"I love you" in Caesar Cipher (Shift = 3)
Encrypting a romantic phrase with shift 3.
Decoding with Shift 3
Deciphering "KHOOR" back to "HELLO".
Caesar Cipher Alphabet Shift Map (Shift = 3)
| Plaintext Letter | Shift +3 | Plaintext Letter | Shift +3 |
|---|---|---|---|
| A–M | D–P | N–W | Q–Z |
| X | A | Y | B |
| Z | C | Space / Numbers | Preserved as-is |
Security Weakness of Caesar Cipher
- The Caesar cipher offers zero security against modern cryptanalysis because an adversary can test all 25 possible shift keys in seconds (brute-force attack).
- It preserves natural English letter frequency patterns (the letter "E" remains the most common character in the ciphertext, simply shifted).
자주 묻는 질문
What is a Caesar cipher?
How does a Caesar cipher work?
How to do a Caesar cipher?
Is Caesar cipher symmetric or asymmetric?
How do I decode a Caesar cipher?
How do you say "I love you" in Caesar cipher?
Is the Caesar cipher easy to crack?
What is one weakness of the Caesar cipher?
How to solve a Caesar cipher without a key?
How to talk in Caesar cipher?
How to reverse a Caesar cipher?
관련 도구
Rotate letters by 13 positions in the alphabet. Self-inverse symmetric substitution.
Polyalphabetic substitution cipher using a repeated secret keyword and the Vigenère tabula recta.
Monoalphabetic substitution cipher where the alphabet is mapped onto its reverse (A ↔ Z, B ↔ Y).
Mathematical substitution cipher: E(x) = (ax + b) mod 26 using coprime multiplier and shift.