Tools to decrypt/encrypt with Redefence automatically. Redefence cipher is a variant of Rail Fence with a key that defines the order of lines to be read after zig-zag writing.
Redefence Cipher - dCode
Tag(s) : Transposition Cipher
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
Example: The plain message is DCODEZIGZAG and the key ZIG (of size N=3 letters).
The characteristic of Redefence is to have a key that defines the reading order of the lines.
Example: The letters of the key ZIG are then arranged in alphabetical order G,I,Z which defines the reading order of the lines 3,2,1.
Example: The encrypted message is therefore composed of line 3 OIG, line 2 CDZGA and line 1 DEZ so the final message is OIGCDZGADEZ
Redefence decryption requires knowing the encryption key because it conditions the number of levels N and the order of reading.
Example: The encrypted message is DNRFEEEEC and the key ZAG (2,3,1) of size N=3.
The expected shape is drawn (depending on the number of levels and the length of the message).
Then write the letters of the text starting with line 1 (defined according to the key).
The plain message is then readable in zig-zag from left to right.
Example: The plain text is REDEFENCE
As for Rail-Fence, a brute-force attack of all levels (2 to N) is possible. Extra work is required to find the order of the lines.
Reminder : dCode is free to use.
The copy-paste of the page "Redefence Cipher" or any of its results, is allowed (even for commercial purposes) as long as you cite dCode!
Exporting results as a .csv or .txt file is free by clicking on the export icon
Cite as source (bibliography):
Redefence Cipher on dCode.fr [online website], retrieved on 2023-12-05,