in reply to XOR decryption
- tye (but my friends call me "Tye")sub xor_befuddle { my( $cleartext, $onetimepad )= @_; $onetimepad .= $onetimepad while length($onetimepad) < length($cleartext); return $cleartext ^ substr( $onetimepad, 0, length($cleartext) ); }
|
|---|