Encode or decode a Rail Fence zigzag cipher with a chosen number of rails.
This tool applies the Rail Fence transposition cipher. Enter a message, choose encode or decode, set the rail count and compare the transformed text.
How the rail count matters
The cipher writes characters down and up across rails, then reads each rail in order. Decoding needs the same rail count used for encoding.
Scope
Rail Fence is a simple historical and puzzle cipher. It rearranges characters, but it is not secure encryption.