IVX
ローマ数字変換ツールJA
CLASSICAL SUBSTITUTION & TRANSPOSITION CIPHERS TOOL • UNIFIED WORKSPACE

シーザー暗号 変換ツール

古代ローマのシフト暗号(シフト値1〜25)でメッセージの暗号化と復号を行います。

Presets:
Ready
MMXXVI
コピー完了!

計算プロセスの内訳

シーザー暗号 変換ツール について

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.

このツールの使い方

  1. 入力フィールドに変換したい値またはテキストを入力します。
  2. 必要に応じて変換オプションやフォーマットを選択します。
  3. 変換結果がリアルタイムで即座に出力されます。
  4. 「コピー」ボタンをクリックして結果をクリップボードに保存します。

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.

In:HELLO WORLD
Out:KHOOR ZRUOG

"I love you" in Caesar Cipher (Shift = 3)

Encrypting a romantic phrase with shift 3.

In:I love you
Out:L oryh brx

Decoding with Shift 3

Deciphering "KHOOR" back to "HELLO".

In:KHOOR
Out:HELLO

Caesar Cipher Alphabet Shift Map (Shift = 3)

Plaintext LetterShift +3Plaintext LetterShift +3
A–MD–PN–WQ–Z
XAYB
ZCSpace / NumbersPreserved 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?
A Caesar cipher is a simple substitution cipher where each letter in the plaintext is shifted by a fixed number of positions down the alphabet (e.g., with shift 3, A becomes D, B becomes E).
How does a Caesar cipher work?
It assigns each letter a numeric index from 0 to 25 (A=0, B=1... Z=25), adds a chosen key number (1–25), and wraps around using modulo 26 arithmetic. Decryption subtracts the same key number.
How to do a Caesar cipher?
Choose a shift key (e.g., 3). Write out the alphabet on line 1, and write out a shifted alphabet starting with your shift letter on line 2. Replace each letter of your message with the corresponding letter below it.
Is Caesar cipher symmetric or asymmetric?
The Caesar cipher is a symmetric cipher. The same secret key (the shift value) is used for both encryption (adding the shift) and decryption (subtracting the shift).
How do I decode a Caesar cipher?
If you know the shift key, shift each letter backward by that number. If you don't know the key, test all 25 possible shifts until meaningful English words appear (brute-force).
How do you say "I love you" in Caesar cipher?
Using Julius Caesar's historical shift of 3, "I love you" becomes "L oryh brx".
Is the Caesar cipher easy to crack?
Yes, it is extraordinarily easy to crack. Because there are only 25 possible keys, anyone can test every possible shift manually in less than a minute, or instantly with a computer.
What is one weakness of the Caesar cipher?
Its primary weakness is the extremely small key space (only 25 non-trivial keys), combined with the fact that it preserves the exact letter frequency distribution of the plaintext language.
How to solve a Caesar cipher without a key?
Perform a frequency analysis on the ciphertext (finding the most common letter and assuming it corresponds to "E"), or write out all 25 candidate shift lines until an intelligible sentence is revealed.
How to talk in Caesar cipher?
Talking in Caesar cipher involves mentally shifting each phoneme or letter by a pre-agreed number (such as 1: "A" becomes "B", "Hello" becomes "Ifmmp"). Because real-time mental shifting is difficult, it is almost always written.
How to reverse a Caesar cipher?
To reverse (decode) a Caesar cipher with shift $k$, shift the letters forward by $26 - k$, or simply shift them backward by $k$ positions.

関連ツール