I need to do a checksum against a value being received by my program. I can simulate the operation by inputting the values into the Windows Calculator program in Scientific mode, using the XOR function, i.e. the hex byte value 33 XOR with the hex byte value 2A yields hex byte 19.
How would you code this operation in C#?
I've tried using the ^ operator, but it doesn't return the value that I expect...
Thanks in advance!
How would you code this operation in C#?
I've tried using the ^ operator, but it doesn't return the value that I expect...
Thanks in advance!