1
0
This commit is contained in:
2023-09-29 23:48:37 +08:00
parent 450afba784
commit 5dc0686317
14 changed files with 1301 additions and 5 deletions

13
set1/challenge4.py Normal file
View File

@@ -0,0 +1,13 @@
import binascii
with open("set1/4.txt",'r') as file:
lines = file.readlines()
hex_str = "".join(line.strip() for line in lines)
bytes_str = binascii.unhexlify(hex_str)
for key in range(256):
decrypted = "".join(chr(b ^ key) for b in bytes_str)
print(decrypted)
# 不知道为什么全部都是乱码