Thanks for all the help

-Tristan

Sorry forgot to add above:

import sys MSGS = ( --- 11 secret messages --- ) def strxor(a, B)/>: # xor two strings of different lengths if len(a) > len(B)/>: return "".join([chr(ord(x) ^ ord(y)) for (x, y) in zip(a[:len(B)/>], B)/>]) else: return "".join([chr(ord(x) ^ ord(y)) for (x, y) in zip(a, b[:len(a)])]) def random(size=16): return open("/dev/urandom").read(size) def encrypt(key, msg): c = strxor(key, msg) print print c.encode('hex') return c def main(): key = random(1024) ciphertexts = [encrypt(key, msg) for msg in MSGS]