IVX
Convertisseur Chiffre RomainFR
CLASSICAL SUBSTITUTION & TRANSPOSITION CIPHERS TOOL • UNIFIED WORKSPACE

Rail Fence Cipher

Encrypt and decode transposition ciphers using the zigzag Rail Fence pattern across customizable numbers of rails (depths 2–10).

Presets:
Ready
MMXXVI
Copié !

Détail du calcul

À propos de : 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.

Comment utiliser cet outil

  1. Saisissez ou collez vos données dans le champ d’entrée.
  2. Ajustez les options de conversion selon vos besoins.
  3. Le résultat converti est calculé instantanément en temps réel.
  4. Cliquez sur Copier pour récupérer votre texte converti.

Rail Fence Examples

3-Rail Encryption

Writing "DEFEND THE EAST WALL" across 3 zigzag rails.

In:DEFEND THE EAST WALL (Rails: 3)
Out:DNETLEEDHESWLFTA

2-Rail Alternate Split

Splitting alternating letters into top and bottom rows.

In:HELLO (Rails: 2)
Out:HLOEL

Transposition Characteristics

  • Letter frequencies are 100% identical to the plaintext, making Rail Fence ciphers detectable via anagramming and frequency tests.

Foire Aux Questions

What is the Rail Fence cipher?
The Rail Fence cipher is a transposition cipher where plaintext characters are written in a zigzag pattern across multiple imaginary rails and read off row by row.
How do you decode a Rail Fence cipher?
Determine the number of rails and message length, calculate how many characters belong on each rail, reconstruct the empty zigzag grid, fill in the rows, and read diagonally.
Is Rail Fence a substitution cipher?
No. It is a transposition cipher; the letters themselves never change, only their positions in the text.

Outils associés