Search for a tool
Redefence Cipher

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.

Results

Redefence Cipher -

Tag(s) : Transposition Cipher

Share
Share
dCode and more

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!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'Redefence Cipher' tool for free! Thank you!

Redefence Cipher

Redefence Decoder

 




Loading...
(if this message do not disappear, try to refresh this page)

Redefence Encoder

 


Loading...
(if this message do not disappear, try to refresh this page)

Answers to Questions (FAQ)

How to encrypt using Redefence cipher?

The Redefence cipher is similar to the Rail-Fence transposition cipher except that it uses a key that defines both the number of levels in the zig zag and the order in which the lines are read.

Example: The plain message is DCODEZIGZAG and the key ZIG (of size N=3 letters).

The message is encrypted by Redefence (as with Rail Fence) by writing it in zig-zag on N levels.

Example: (1-Z): D---E---Z--
(2-I): -C-D-Z-G-A-
(3-G): --O---I---G

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

How to decrypt a Redefence cipher?

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).

Example: X---X---X
-X-X-X-X-
--X---X--

Then write the letters of the text starting with line 1 (defined according to the key).

Example: (2): R---F---E
(3): -E-E-E-C-
(1): --D---N--

The plain message is then readable in zig-zag from left to right.

Example: The plain text is REDEFENCE

How to recognize Redefence ciphertext?

Redefence is a transposition cipher, so the frequency analysis and the coincidence index of the message are similar to that of the plaintext language.

How to decipher Redefence without the key?

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.

What are the variants of the Redefence cipher?

Redefence is a variant of the Rail Fence cipher adding the possibility of modifying the order of reading of the lines forming the zig-zag.

Source code

dCode retains ownership of the "Redefence Cipher" source code. Any algorithm for the "Redefence Cipher" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Redefence Cipher" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Redefence Cipher" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.

Cite dCode

The content of the page "Redefence Cipher" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source. Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link: https://www.dcode.fr/redefence-cipher
In a scientific article or book, the recommended bibliographic citation is: Redefence Cipher on dCode.fr [online website], retrieved on 2025-04-15, https://www.dcode.fr/redefence-cipher

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'Redefence Cipher' tool for free! Thank you!


https://www.dcode.fr/redefence-cipher
© 2025 dCode — The ultimate collection of tools for games, math, and puzzles.
 
Feedback