phython to C++
Anyone got any suggestions in converting this Xor code into C++.
Code:
def xor(string, with_byte=0xFF, skip_bytes=4):
xored = string[0:skip_bytes]
for byte in string[skip_bytes:]:
xored += chr(ord(byte) ^ with_byte)
return xored