Transposition Cipher - Rail Fence Cipher

Rail Fence Cipher

The Rail Fence cipher is a form of transposition cipher that gets its name from the way in which it is encoded. In the rail fence cipher, the plaintext is written downwards on successive "rails" of an imaginary fence, then moving up when we get to the bottom. The message is then read off in rows. For example, using three "rails" and a message of 'WE ARE DISCOVERED. FLEE AT ONCE', the cipherer writes out:

W . . . E . . . C . . . R . . . L . . . T . . . E . E . R . D . S . O . E . E . F . E . A . O . C . . . A . . . I . . . V . . . D . . . E . . . N . .

Then reads off:

WECRL TEERD SOEEF EAOCA IVDEN

(The cipherer has broken this ciphertext up into blocks of five to help avoid errors.)

Read more about this topic:  Transposition Cipher

Famous quotes containing the words rail, fence and/or cipher:

    If goodness were only a theory, it were a pity it should be lost to the world. There are a number of things, the idea of which is a clear gain to the mind. Let people, for instance, rail at friendship, genius, freedom, as long as they will—the very names of these despised qualities are better than anything else that could be substituted for them, and embalm even the most envenomed satire against them.
    William Hazlitt (1778–1830)

    Thus thinne and lean without a fence or friend,
    I was blown through with ev’ry storm and winde.
    George Herbert (1593–1633)

    The eye is the first circle; the horizon which it forms is the second; and throughout nature this primary figure is repeated without end. It is the highest emblem in the cipher of the world.
    Ralph Waldo Emerson (1803–1882)