Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # two hex encoded strings coming in on stdin
- # will get xored and output as a hex encoded string
- import fileinput
- lines = [l for l in fileinput.input()]
- print hex(int(lines[0], 16) ^ int(lines[1], 16)).replace("0x", "").rstrip("L")
Add Comment
Please, Sign In to add comment