シーザー暗号とは?

無料のオンライン シーザー暗号ツール。シーザーシフト暗号を使用してテキストを暗号化または復号。

The Caesar cipher is one of the earliest known encryption techniques, used by Julius Caesar to protect military messages. Each letter in the plaintext is shifted a fixed number of positions down the alphabet. With modern computing, it offers no real security — but it remains an excellent teaching tool for understanding cryptography fundamentals, character encoding, and modular arithmetic.

This tool supports custom shifts from 1 to 25 positions. Quick preset buttons provide ROT3 (the classic Caesar shift), ROT5 (shifts digits 0-9), ROT13 (shifts letters, self-inverse), and ROT47 (shifts all printable ASCII characters). Choose Encrypt or Decrypt mode — encryption shifts forward, decryption shifts backward. The slider provides fine-grained shift selection.

The brute-force mode displays all 25 possible shifts simultaneously. This is useful for cryptanalysis: if you have ciphertext but do not know the shift, brute-force shows every possible decryption at once. The correct shift typically produces readable English text. A letter frequency bar chart visualizes the distribution of letters in the output, helping identify the natural letter distribution that signals correct decryption.

Non-alphabetic characters (spaces, numbers, punctuation) are preserved in their original positions. Letter case is maintained. The tool works with any text in English or any Latin-alphabet language.

シーザー暗号の実際の使用例

シーザー暗号の仕組みを学ぶ学生

暗号学の学生が「HELLO WORLD」と入力し、ROT3で暗号化します。結果は「KHOOR ZRUOG」です。次に暗号文を貼り戻し、ROT3で復号に切り替えると、元の文に戻ります。学生はさまざまなシフトを試して対応関係を理解します。

ブルートフォースで未知のシーザー暗号を解読する

パズルを解く人が「WKH HDJOH LV LQ WKH QHVW」という暗号文を見つけましたが、シフトがわかりません。ブルートフォースビューに貼り付けます。全25シフトが表示されます。1つのシフトが目に飛び込んできます。シフト3で「THE EAGLE IS IN THE NEST」です。これが正しい復号文です。

ROT13でテキストを簡単に隠す

フォーラムユーザーが、すぐに明かさずにネタバレを投稿したいと考えています。テキストをROT13で暗号化します。ネタバレを読みたい人は、暗号文を貼り付けてROT13を再度適用すれば復号できます(ROT13は26文字で自己逆転の性質を持ちます)。

なぜシーザー暗号を使うのか?

  • 双方向:暗号化↔復号化
  • シフト値1〜25
  • アルファベットのみ変換(記号はそのまま)
  • 大文字小文字を維持

シーザー暗号の使い方 — ステップバイステップ

1

暗号化または復号化を選択します。

2

メッセージを入力します。

3

シフト値を設定します(1〜25)。

4

変換されたテキストを表示してコピーします。

シーザー暗号はこんな方におすすめ

  • 暗号学
  • 教育
  • パズル
  • 歴史

シーザー暗号のプロのヒント

  • 1ROT13はインターネットで最も一般的なシーザー暗号のバリエーションです。2回適用すると元に戻る自己逆転方式だからです。オンラインフォーラムのネタバレ保護や単純な難読化によく使われます。
  • 2文字頻度チャートが未知のシフトを解く鍵です。英語ではEが最も一般的な文字(テキストの約12.7%)で、T、A、O、I、N、S、H、Rと続きます。チャートの分布がこのパターンと一致すれば、正しいシフトが見つかったことになります。
  • 3ROT47は英字だけでなく、表示可能な全94のASCII文字をシフトします。数字、句読点、特殊文字を含むテキストの難読化に有効です。ROT13ではこうした文字はそのままになります。
  • 4シーザー暗号は単一換字暗号です。各文字がちょうど1つの文字に置き換わります。そのため頻度分析で簡単に破られます。現代の暗号は、こうした攻撃に耐える多表式暗号や鍵ベースのアルゴリズムを使用しています。

シーザー暗号 — よくある質問

What is the difference between ROT13 and Caesar cipher?

ROT13 is a Caesar cipher with shift 13. Since the alphabet has 26 letters, ROT13 is self-inverse — applying it twice returns the original text. ROT47 extends the concept to all 94 printable ASCII characters.

Can the Caesar cipher be cracked?

Yes, easily. There are only 25 possible shifts, so brute-force reveals all of them instantly. The frequency analysis chart helps identify which shift produces the most natural letter distribution.

Does the text analyzer support non-English languages?

Yes. The analysis uses the browser's native Intl API for language-aware text segmentation. Word and character counting works correctly for most languages including Chinese, Japanese, Arabic, and accented Latin scripts.

Can I process very long documents?

Documents up to approximately 100,000 words are supported. Analysis is incremental, meaning results update instantly even for large texts without blocking the browser.

Is there a difference between character count with and without spaces?

Yes. The tool provides both metrics. Character count without spaces is commonly used for SMS, social media posts, and certain content management systems.

シーザー暗号を今すぐ試す

無料オンラインツール — ブラウザで動作、サインアップ不要。今すぐ使い始められます。

今すぐ試す
Free Forever · No Sign-up

182 Free Tools at Your Fingertips

All free online tools for developers, designers, students, and creators. Every tool works in your browser — no sign-up, no data collection.