Redefence

Railfence cipher that reads lines in any order

Options:
Alphabets:
0

The Redefence cipher is a variation of Railfence. The plaintext is written diagonally like in Railfence, but the emerging rows are read in a defined order. If 3 rails are chosen and the order is set to (2 3 1), the plaintext “CT-ONLINE” is written down as follows:

C . . . N . . . E
. T . O . L . N .
. . - . . . I . .

The defined order (2 3 1) results in the cipher text:TOLN-ICNE

Die zugrundeliegende Jägerzaun-Chiffre ist nicht sehr stark; die Anzahl der möglichen Schlüssel ist so gering, dass ein Kryptoanalyst sie einfach nach und nach ausprobieren kann. Durch die Modifikation bei Redefence erhöht sich die Sicherheit nur wenig.