in reply to
Re: strings to number and XOR
in thread strings to number and XOR
Last question, then I should be done. :)
For the variable
$key = "\x4f\xcb";
How can I increment it?
I've tried directly with $key++, but that starts counting at 0, I would expect \x4f\xcc as the result.
And I've tried unpacking it. Which starts incrementing with the first number (4 in this case) and loses the rest of the data. eg 4,5,6...
I would like
UPDATE: I've found part of the problem, perl doesn't like to add numbers that aren't "numbers", this works fine as long as my bytes are in the range of ASCII numbers, but fails for values above outside of 0x30-0x39.