异或加密的一道题
明文和密文进行异或得出flag:
with open("明文.txt") as f1: a = f1.read()with open("密文.txt") as f2: b = f2.read()key = ''for i in range(len(a)): key += chr(ord(list(a)[i]) ^ ord(list(b)[i]))print(key)
本文共 257 字,大约阅读时间需要 1 分钟。
异或加密的一道题
明文和密文进行异或得出flag:
with open("明文.txt") as f1: a = f1.read()with open("密文.txt") as f2: b = f2.read()key = ''for i in range(len(a)): key += chr(ord(list(a)[i]) ^ ord(list(b)[i]))print(key)
转载于:https://www.cnblogs.com/RenoStudio/p/10541869.html