+/Cryptopals

git clone https://git.julia.blue/+/Cryptopals

Joseph RyanAdd rust solutions6d42c13

master
269 B8 linesraw
1hex2b = lambda s: bytes(int(s[i : i + 2], 16) for i in range(0, len(s), 2))
2
3fixedXor = lambda a, b: bytes([a[i] ^ b[i] for i in range(len(a))])
4
5a = "1c0111001f010100061a024b53535009181c"
6b = "686974207468652062756c6c277320657965"
7
8print(fixedXor(hex2b(a), hex2b(b)))