Buuoj 异性相吸

题目

密文.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

posted @ 2020-10-15 10:59  vict0r  阅读(618)  评论(0编辑  收藏  举报