Sep 25, 2000, 1:10 PM
Post #1 of 4
Ok, a friend of mine who is a quack at crytpography told me a quick way to encrypt is to XOR strings and numbers. The XOR, combined with a key, acts as a toggle to encrypt, decrypt strings or numbers. This all seems fine in theory but I'm having problems implementing the real thing. I read there is no real XOR operator in Perl. Is that true? Would there be a way around this? I found in O'reilly's Programming Perl that there is a sort of XOR (^) but it only works on bits. Would that help? I'm trying to do stuff like :
Quick encryption help needed...
$encrypte = $string ^ $encryptionkey;
and then back again, with $string values that contain numbers, caracters or both. Thanks!