题目:
https://cryptopals.com/sets/1/challenges/5
解法:
x = "Burning 'em, if you ain't quick and nimble" key = "ICE" y = bytearray([ord(x[i]) ^ ord(key[i % len(key)]) for i in range(len(x))]).hex() print(y)
题目:
https://cryptopals.com/sets/1/challenges/5
解法:
x = "Burning 'em, if you ain't quick and nimble" key = "ICE" y = bytearray([ord(x[i]) ^ ord(key[i % len(key)]) for i in range(len(x))]).hex() print(y)