[quote:24wzjcoh]Uns würde interessieren, ob es eine Formel gibt, die für alle
Text-Längen direkt die Permutation erzeugen kann, mit der man
aus einem Geheimtext den entsprechenden Klartext erzeugen kann.[/quote:24wzjcoh]
The following is a more or less handy description of the permutation:
If the length L of the text is a power of two, say L=2^n, then the encryption permutation P is given by bit reversal P=BR_n, in particular it is an involution then. For general L choose n with 2^n >= L. Then P(i)=BR_n(k_i) where k_i is the (i+1)-th element in 0,1,…,2^n-1 such that BR_n(k_i) < L.
[ Encryption]