Skip to content

Instantly share code, notes, and snippets.

@joallard
Created August 9, 2017 00:19
Show Gist options
  • Save joallard/79ec1ce9974b8a08308094c6401fd42e to your computer and use it in GitHub Desktop.
Save joallard/79ec1ce9974b8a08308094c6401fd42e to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import sys
a, b = sys.argv[1:]
a = int(a, 16)
b = int(b, 16)
x = a ^ b
print('{:x}'.format(x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment