🏛️ レールフェンス暗号とは?
レールフェンス暗号(ジグザグ暗号とも呼ばれる)は、平文を複数の水平な「レール」または行にジグザグパターンで書き込むことによって再配置する古典的な転置暗号です。暗号文は、各レールを上から下に順に読み取ることで作成されます。 (also called the Zigzag Cipher) is a classical transposition cipher that rearranges the plaintext by writing it in a zigzag pattern across multiple horizontal "rails" or rows. The ciphertext is then created by reading off each rail sequentially from top to bottom.
文字を置き換える換字暗号(シーザー暗号など)とは異なり、レールフェンス暗号は単に文字の順序を変更するため、転置技術です。 of letters, making it a transposition technique.
📖 レールフェンス暗号の仕組みは?
The encryption process follows these steps:
- レール数を選択します(これが鍵/深さになります) (this is your key/depth)
- メッセージをレール上にジグザグパターンで書きます in a zigzag pattern across the rails
- 各レールを上から下に読み取って暗号文を作成します each rail from top to bottom to create the ciphertext
Step 1: Write in zigzag pattern...
🔓 レールフェンス暗号の解読方法
復号化には、使用されたレール数を知る必要があります:
- 空のプレースホルダーでジグザグパターンを描きます with empty placeholders
- 各レールに入る文字数を計算します go in each rail
- 暗号文から順にレールを埋めます sequentially from the ciphertext
- ジグザグパターンを読んで平文を明らかにします to reveal the plaintext
プロのヒント:上記のツールの「復号化」モードを使用して、任意のレールフェンス暗号メッセージを自動的に解読してください! Use the tool above with "Decode" mode to automatically decrypt any Rail Fence Cipher message!