
Rail fence cipher
Write your message in a zig-zag across a number of rails, then read each rail in turn. Set the rails and offset, then encrypt or decrypt.
Runs in your browser. Nothing you type is sent anywhere.
How to use it
- Set the number of rails (3 is the classic).
- Type your text and choose Encrypt or Decrypt.
- Tick Keep spaces if the spaces are part of the message.
How the rail fence works
With 3 rails, WEAREDISCOVERED goes down and up in a zig-zag, and the top rail is read first, then the middle, then the bottom. The letters don't change, only their order, so letter frequencies still look like English. That's the tell of a transposition cipher.
Questions
I don't know the number of rails.
Try 2 to 10 with Decrypt; with short messages one of them will read correctly at once.
What is the offset?
Where on the zig-zag the first letter starts. Most puzzles use 0.
