Guest User

Untitled

a guest
Jan 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # two hex encoded strings coming in on stdin
  3. # will get xored and output as a hex encoded string
  4. import fileinput
  5.  
  6. lines = [l for l in fileinput.input()]
  7.  
  8. print hex(int(lines[0], 16) ^ int(lines[1], 16)).replace("0x", "").rstrip("L")
Add Comment
Please, Sign In to add comment