Search for a tool
Rail Fence (ZigZag) Cipher

Tools to decrypt/encrypt Rail Fence automatically. Rail Fence cipher is a transposition cipher consisting in writing a text in zig-zag and read it from left to right.

Results

Rail Fence (ZigZag) Cipher -

Tag(s) : Cryptography,Transposition Cipher

dCode and you

dCode is free and its tools are a valuable help in games, puzzles and problems to solve every day!
You have a problem, an idea for a project, a specific need and dCode can not (yet) help you? You need custom development? Contact-me!


Team dCode read all messages and answer them if you leave an email (not published). It is thanks to you that dCode has the best Rail Fence (ZigZag) Cipher tool. Thank you.

This page is using the new English version of dCode, please make comments !

Rail Fence (ZigZag) Cipher

Sponsored ads

This script has been updated, please report any problems.

Rail Fence Decoder







Also on dCode: Caesar Box Cipher

Rail-Fence Encoder






Also on dCode: Caesar Box Cipher

Tools to decrypt/encrypt Rail Fence automatically. Rail Fence cipher is a transposition cipher consisting in writing a text in zig-zag and read it from left to right.

Answers to Questions

How to encrypt using Rail Fence cipher?

Encryption uses an integer for the number of levels of the zigzag

N = 3. One wants to code DCODEZIGZAG.

The message is written in zig zag and read in lines.

D---E---Z--
-C-D-Z-G-A-
--O---I---G

The ciphered message is DEZCDZGAOIG.

How to decrypt Rail Fence cipher?

Decryption requires to know the number of levels N

One wants to decrypt the message DEZCDZGAOIG with N=3

One writes the expected zigzag form and complete it by lines, before reading as zig zag

X---X---X--
-X-X-X-X-X-
--X---X---X

D---E---Z--
-C-D-Z-G-A-
--O---I---G

The original plain text is DCODEZIGZAG.

How to recognize Rail Fence ciphered text?

The ciphered message has an index of coincidencehref similar to the language of the plain text.

Frequency analysishref reveals usual occurrences of common letters similar to a plain text.

How to decipher Rail Fence without the number of levels?

One can crack Rail Fence by testing all levels from 2 to N. Use the Brute-force attack button.

What are the variants of the Rail Fence cipher?

There are several variations:

- The fence may begin with a peak or a hollow (up or down).

A...E
.B.D.
..C..
(↘↗ hollow)

..C..
.B.D.
A...E
(↗↘ peak)

- The first letter is not necessarily the base of the peak or hollow, the zig zag can start in the middle (equivalent to add spaces at the beginning)

....D.
.A.C.E
..B...
(One shift)

- It is possible to allow the spaces and punctuation, which shifts the characters.

What is the difference between Rail Fence and ZigZag?

None, Rail Fence is the original word, ZigZag is the mnemonic term.

When Rail-Fence have been invented?

?

Ask a new question

Source code

dCode retains ownership of the source code of the script Rail Fence (ZigZag) Cipher. Except explicit open source licence (free / freeware), any algorithm, applet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any snippet or function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in PHP (or Java, C#, Python, Javascript, etc.) which dCode owns rights can be transferred after sales quote. So if you need to download the Rail Fence (ZigZag) Cipher script for offline use, for you, your company or association, see you on contact page !

Questions / Comments


Team dCode read all messages and answer them if you leave an email (not published). It is thanks to you that dCode has the best Rail Fence (ZigZag) Cipher tool. Thank you.


Source : http://www.dcode.fr/rail-fence-cipher
© 2016 dCode — The ultimate 'toolkit' website to solve every problem. dCode