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)

  

posted @ 2019-12-07 00:55  雪溯  阅读(93)  评论(0编辑  收藏  举报