Redefence Cipher Encoder/Decoder
Choose a mode, set the rails and key, then enter your text.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
The Redefence cipher is a keyed variant of the classic rail-fence cipher. Plaintext letters are written in a zig-zag pattern down and up across N rails (rows), exactly as in a normal rail fence — but instead of reading the rows off in top-to-bottom order, a numeric key determines the order the rails are read in, adding an extra layer of scrambling beyond the basic zig-zag.
Like other rail-fence variants, it's a transposition cipher — it rearranges letters rather than substituting them — and offers only modest security by modern standards. It shows up mainly in cryptography education, puzzle hunts, and CTF (capture-the-flag) challenges as a step up from the plain rail fence, illustrating how adding a key to a simple transposition scheme increases the keyspace an attacker has to search.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)