Atbash & レールフェンス暗号とは?

無料のオンライン Atbash 暗号とレールフェンス暗号ツール。古典的な暗号アルゴリズムを使用してテキストを暗号化または復号。

The Atbash cipher is one of the oldest known encryption methods, dating back to ancient Hebrew texts where it was used to conceal meaning. It works by reversing the alphabet: A becomes Z, B becomes Y, C becomes X, and so on. The Rail Fence cipher, by contrast, is a transposition cipher that rearranges letters by writing them diagonally across rows (rails) and reading them row by row.

Atbash is a monoalphabetic substitution with the unique property of being self-inverse — applying it twice returns the original text. This makes it simple to use: switch between encrypt and decrypt as needed. An optional digit reversal mode maps 0↔9, 1↔8, 2↔7, and so on, extending the cipher's reach to numeric content.

The Rail Fence cipher writes text across a configurable number of rails (2 to 10). For example, with 3 rails, the text "HELLO WORLD" is written diagonally across three rows, creating a zigzag pattern. The encrypted text is formed by reading row by row. The rail pattern visualization shows exactly how each letter is placed on each rail, making the transposition clear.

Both ciphers are intended for learning, puzzles, and historical interest. Neither provides any real security against modern cryptanalysis. The Rail Fence cipher can be cracked by trying different rail counts (only 2-10 possibilities) and looking for readable output.

Atbash & レールフェンス暗号の実際の使用例

パズルのアトバシュ暗号文を解読する

パズルゲームで「ZGYZHS XZOO」という表記に遭遇したユーザーがいます。アトバシュツールに貼り付けると「TABLES WALL」になります。自己逆転の性質により、暗号文を貼り付けるだけで済みます。暗号化と復号は同じ操作です。

4レールのレールフェンスで秘密のメッセージを送る

学生が「THE TREASURE IS BURIED」を4レールのレールフェンスで暗号化します。レールのビジュアライゼーションが4行にわたるジグザグパターンを示します。行ごとに読み取ると暗号文が生成されます。暗号文とレール数を友人に送り、友人は復号します。

未知のレールフェンス暗号を解読する

CTFプレイヤーが暗号文を受け取り、レールフェンスではないかと疑います。2から10までの各レール数を試します。5レールで読み取れるテキストが現れます。レールのビジュアライゼーションがパターンを裏付けます。レール数の範囲が小さいため、解読は9回の試行で済みました。

なぜAtbash & レールフェンス暗号を使うのか?

  • 対称暗号 — 暗号化と復号化は同じ操作
  • 単純なアルファベットの反転
  • 大文字小文字を維持
  • リアルタイム変換

Atbash & レールフェンス暗号の使い方 — ステップバイステップ

1

暗号化または復号化を選択します(Atbashは対称暗号です)。

2

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

3

変換されたテキストが即座に表示されます。

4

結果をコピーします。

Atbash & レールフェンス暗号はこんな方におすすめ

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

Atbash & レールフェンス暗号のプロのヒント

  • 1アトバシュは自己逆転方式です。同じ操作で暗号化と復号の両方を行えます。そのため実装も利用も最も簡単な暗号の1つです。「Atbash」という名前はヘブライ文字のAleph(最初)、Taw(最後)、Bet(2番目)、Shin(最後から2番目)に由来します。
  • 2レールフェンス暗号は置換暗号ではなく転置暗号です。文字を置き換えるのではなく並べ替えます。つまり暗号文でも文字頻度が保たれるため、頻度分析とアナグラムの併用に対して脆弱です。
  • 3レールフェンスの問題では、まず2、3、4レールを試しましょう。最も一般的な設定です。教育用の例やパズル暗号はほとんど2〜5レールを使います。
  • 4アトバシュで文字と数字が混ざるコードを扱う場合は、数字反転オプションを有効にしましょう。無効だと数字はそのまま通過するため、暗号化が施された証拠になります。

Atbash & レールフェンス暗号 — よくある質問

What is Atbash cipher?

Atbash is a substitution cipher where the first letter of the alphabet is replaced with the last (A↔Z), the second with the second-last (B↔Y), and so on. It was originally used with the Hebrew alphabet in ancient texts.

What is the Rail Fence cipher?

The Rail Fence cipher writes your message diagonally across a set number of "rails" (rows), then reads the letters row by row. For example, with 3 rails, the text "HELLO WORLD" follows a zigzag pattern across the three rows.

Are these ciphers secure by modern standards?

No. Both are classical ciphers that can be broken easily with modern techniques. They are useful for learning cryptography fundamentals, solving puzzles, and understanding historical encryption methods.

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.

Atbash & レールフェンス暗号を今すぐ試す

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

今すぐ試す
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.