cryptopals S1-5

题目:

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://www.cnblogs.com/xuesu/p/12000332.html