Cryptopals.com crypto challenge in Python