http://www.perlmonks.org?node_id=799760


in reply to Re: strings to number and XOR
in thread strings to number and XOR

Okay one last item. Using:$key = "\x4f\xcb" x (length($msg)/2); how do I handle odd length messages? We can see in your example too, that the last character is not xored, 0x7a. I would like it to be xored with 0x4f, or the first part of the key. Thanks for your help. Aaron