Crypto Online

Rail Fence Cipher

The Rail Fence Cipher is a transposition cipher. It rearranges the plaintext letters by drawing them in a way that forms rails of an imaginary fence. The secret key provided by the user is the number of levels in the fence.

For more detailed description of the Rail Fence Cipher, please visit Crypto-IT webpage.

Secret Key
Enter a secret key. It will be used to determine the number of levels of the imaginary fence, used for encryption and decryption.
Enter a secret key. It will be used to determine the number of levels of the imaginary fence, used for encryption and decryption.
Help icon
Input Message
Enter a message you want to encrypt/decrypt. After that, click the correct button below.
Help icon
Enter a message you want to encrypt/decrypt. After that, click the correct button below.
Encrypt
Decrypt
Formatted Input Message
Preview the message that actually will be processed. All non-letter characters and empty spaces will be removed from the message.
Help icon
Preview the message that actually will be processed. All non-letter characters and empty spaces will be removed from the message.
 
 
The grid for an imaginary fence, where the letters will be written.
Help icon
The grid for an imaginary fence, where the letters will be written.
Output Message
The result of encryption/decryption.
Help icon
The result of encryption/decryption.
Reset
Copy Output to Input