Rail Fence Cipher
Encrypt and decode transposition ciphers using the zigzag Rail Fence pattern across customizable numbers of rails (depths 2–10).
상세 계산 과정
Rail Fence Cipher 소개 및 원리
The Rail Fence cipher (also called the Zigzag cipher) is a classical form of transposition cipher. Rather than replacing characters with different symbols (as in substitution ciphers), a transposition cipher keeps the original letters intact but scrambles their positions.
In a Rail Fence cipher, the plaintext is written diagonally downwards on successive imaginary "rails" of an imaginary fence, moving up and down in a continuous zigzag pattern. Once the entire message is written, the letters are read off row by row from top to bottom.
Used as far back as the ancient Greeks (in the Spartan scytale) and during the American Civil War, the Rail Fence cipher is a quintessential study in transposition cryptography.
도구 사용 방법
- 입력 필드에 변환할 값 또는 텍스트를 입력합니다.
- 필요에 따라 변환 옵션 및 방향을 설정합니다.
- 변환 결과가 실시간으로 즉시 생성됩니다.
- 복사 버튼을 클릭하여 결과를 클립보드에 복사합니다.
Rail Fence Examples
3-Rail Encryption
Writing "DEFEND THE EAST WALL" across 3 zigzag rails.
2-Rail Alternate Split
Splitting alternating letters into top and bottom rows.
Transposition Characteristics
- Letter frequencies are 100% identical to the plaintext, making Rail Fence ciphers detectable via anagramming and frequency tests.
자주 묻는 질문
What is the Rail Fence cipher?
How do you decode a Rail Fence cipher?
Is Rail Fence a substitution cipher?
관련 도구
Shift letters along the Latin alphabet by a configurable key offset (1–25).
Monoalphabetic substitution cipher where the alphabet is mapped onto its reverse (A ↔ Z, B ↔ Y).
Polyalphabetic substitution cipher using a repeated secret keyword and the Vigenère tabula recta.