Crypto Lab

Classical

Rail Fence Cipher

Writes text in a zigzag across rails, then reads each rail left to right.

Classical

Playground

Change inputs and inspect the transformation

A transposition cipher: characters move positions instead of being replaced.

Output

Ciphertext

LNYER RPOACT

Steps

Transformation trace

  1. Rails

    3 => L...N...Y... / .E.R. .R.P.O / ..A...C...T.

    Characters move down and up through the rails in a zigzag.

  2. Read rows

    top rail to bottom rail => LNYER RPOACT

    The ciphertext is made by reading each rail from left to right.