1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-06 12:00:34 -07:00
moth/doc/2010-10-NMT/posters/decode
2010-11-19 16:24:06 -07:00

18 lines
272 B
Python
Executable file

#! /usr/bin/python
import sys
def xor(s, t):
return ''.join(chr(ord(a) ^ ord(b)) for (a,b) in zip(s,t))
acc = None
for line in sys.stdin:
l = line.strip().decode('hex')
print l
if not acc:
acc = l
else:
acc = xor(acc, l)
print acc