in reply to Re: Encryption in Perl?
in thread Encryption in Perl?
In other words, it's a completely naive implementation of simple XOR. Avoid at all costs.for ($j = 0; $j < length($a); $j++) { substr($a, $j, 1) += substr($b, $i, 1); substr($a, $j, 1) = 0 if substr($a, $j, 1) == 2; $i = 0 if ++$i > length($priv); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Encryption in Perl?
by CombatSquirrel (Hermit) on Jul 19, 2004 at 19:09 UTC |