str = "1234567890abcdef"
iArr = [0] * 16
iArr[0] = 0
iArr[12] = 14
iArr[10] = 7
iArr[14] = 15
iArr[15] = 42
try:
iArr[1] = 3
iArr[5] = 5
except:
iArr[5] = 37
iArr[1] = 85
iArr[6] = 15
iArr[2] = 13
iArr[3] = 19
iArr[11] = 68
iArr[4] = 85
iArr[13] = 5
iArr[9] = 7
iArr[7] = 78
iArr[8] = 22
key_arr = bytearray("bobdylan", encoding="utf-8")
result=[]
for i in range(0, 16):
num = iArr[i] ^ key_arr[i % 8]
result.append(chr(num))
print("".join(result))
标签:iArr,15,arr,python,bobbydylan,ctf,num,result,85
From: https://www.cnblogs.com/c-x-a/p/16893055.html