题目
密文.txt
key.txt
分析求解
思路:文件异或
key = open("key.txt", 'rb').read()
cipher = open("密文.txt", "rb").read()
flag = []
result = ""
for i in range(len(key)):
flag.append(key[i] ^ cipher[i])
result += chr(flag[i])
print(flag)
print(result)
flag{ea1bc0988992276b7f95b54a7435e89e}