base64.decode
returns a string- strings in python2x are always bytes!
- if you are using python3 you may want to call
bytes(IV)
to ensure 8 bit chunks ... but Im not sure I dont use python3 much
- if you are using python3 you may want to call
- some_int XOR 1 will only flip the lowest byte
- as demonstrated by
print bin(0xff ^ 0x01)
- as demonstrated by
so again we return to what makes you think that this is not the behavior you are seeing? can you give us an example that demonstrates the issue?