I am trying to use the XOR operation using two strings in python.
Here is my script:
packet = "277500011200".decode("hex")
xor = codecs.decode(xor, 'hex')
print packet ^ xor
the xor variable is supposed to be basically a key, where if I xor them together they will decode the packet. However, it is telling me that they are both strings. How do I change the type to hex so that they can work properly?