Created
February 21, 2018 16:02
-
-
Save Hwatwasthat/66b78eb7d8d3e7c16a5f2db2bfc2958d to your computer and use it in GitHub Desktop.
XOR two hex values created by Hwatwasthat - https://repl.it/@Hwatwasthat/XOR-two-hex-values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Values entered must be hex encoded, preface with 0x if not already | |
def hex_xor(first, second): | |
result = (first ^ second) | |
return result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment