Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^3: ROT8000 implementation?by LanX (Saint) |
on Oct 16, 2021 at 08:19 UTC ( [id://11137623]=note: print w/replies, xml ) | Need Help?? |
As I said, it's a misnomer. There is no formula with fixed N here because it operates with a 2^16 lookup table to avoid non-printable characters in both directions.
EditSo the actual N(X) for a mapping Y=R(X) N(X)= N(Y)= Y-X will vary near approximately 2^15-20+-8 (?).* And it ignores anything >= 2^16 like emojis, similar to ROT13 ignoring any ASCII outside the alphabet.
Cheers Rolf *) Actually the description of the author was outdated and doesn't fit his code. He's excluding 2100 characters.
In Section
Seekers of Perl Wisdom
|
|