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