def computeXor(text,key): textBytes = getBytes(text) keyBytes = getBytes(key) return [textBytes[i] ^ keyBytes[i] for i in range(len(textBytes))]