Rail Fence Cipher
Encrypt or decrypt text with the rail fence transposition.
Note: The rail fence cipher writes the message in a zig-zag pattern across a set of rails, then reads it off row by row. Use the same number of rails to decrypt that was used to encrypt.
What Is a Rail Fence Cipher?
The Rail Fence Cipher tool encrypts and decrypts text by writing it in a zig-zag pattern across a number of rails, then reading it row by row. It is a transposition cipher that scrambles the order of characters rather than replacing them.
How to Use This Rail Fence Cipher
- 1Enter RailsType the number of rails (at least 2).
- 2Enter TextType the plaintext or ciphertext.
- 3Choose DirectionClick Encrypt or Decrypt with the same rail count.
Frequently Asked Questions
Related Cryptography Tools
MD5 Generator
Free online MD5 hash generator.
SHA-1 Generator
Free online SHA-1 hash generator.
SHA-256 Generator
Free online SHA-256 hash generator.
SHA-512 Generator
Free online SHA-512 hash generator.
SHA-224 Generator
Free online SHA-224 hash generator.
SHA-384 Generator
Free online SHA-384 hash generator.
More Cryptography Tools
SHA-3 Generator
Free online SHA-3 (Keccak) hash generator.
SHA-256 File Hash
Compute the SHA-256 checksum of any file.
SHA-512 File Hash
Compute the SHA-512 checksum of any file.
RIPEMD-160 Generator
Free online RIPEMD-160 hash generator.
BLAKE2 Generator
Free online BLAKE2b and BLAKE2s hash generator.
BLAKE3 Generator
Free online BLAKE3 hash generator.

