Welcome to Redline spacer spacer
Rail Fence
bar Aug 6, 2020
bar Home
bar Downloads
bar Privacy
bar Site Map
bar Search

Home > Cryptography > Here
The Rail Fence Cipher is a simple cipher where successive characters of a message are written, one after another, on successive "rails" of a fence. Then the text is concatenated together to form the cipher text. If the last character of the plain text doesn't end on the last rail, a fill character, say "X" is used to denote this.

Using this analogy, a plain text of:

This is a test of the rail fence cipher

Becomes (using 3 rails):

Tss sot ifcch
h  ttfhrleeie
iiae  ea n pr

And concatenated:

Tss sot ifcchh  ttfhrleeieiiae  ea n pr

Below is a simple implementation of the rail fence cipher to further your knowledge.

RailCount =

FillChar =

Encodes to

Decodes to

Fight Spam! Join CAUCE!
In Assoication with Half.Com, an eBay company
In Association with Amazon.com

frame bar
spacer Creative Commons License
The website "Redline" by Roland J. Stolfa is licensed under a Creative Commons Attribution-ShareAlike 3.0 United States License.
  [Home]    [Downloads]    [Downsizing]    [Writings]    [Crafts]    [Living]    [Family]    [Toys]    [Cryptography]    [Fun Links]    [Site Credits]    [Personal Info]    [Privacy]    [Site Map]    [Search]    [Email Me]