a = j = i = 0 result = "" box = list(range(256))

for i in range(mystr_length): a = (a + 1) % 256 j = (j + box[a]) % 256 tmp = box[a] box[a] = box[j] box[j] = tmp result += chr(ord(mystr[i]) ^ (box[(box[a] + box[j]) % 256]))

print(result)

改写成Python代码:for $a = $j = $i = 0; $i $mystr_length; $i++ $a = $a + 1 256; $j = $j + $box$a 256; $tmp = $box$a; $box$a = $box$j; $box$j = $tmp; $result = c

原文地址: https://www.cveoy.top/t/topic/bKUj 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录