简单的rc4

image-20231017163615871

image-20231017163312082

1
2
3
4
5
6
7
8
9
10
11
12
13
14
enc = [ 158, 231,  48,  95, 167,   1, 166,  83,  89,  27,
10, 32, 241, 115, 209, 14, 171, 9, 132, 14,
141, 43,0,0]

flag = []

for i in enc:
temp = i ^ 0x22
flag.append(temp)

# 将加密后的flag以十六进制形式输出,不带0x,每个字符之间用空格隔开
hex_flag = ' '.join([format(i, 'x') for i in flag])
print(hex_flag)