cryptopals

https://cryptopals.com/
Log | Files | Refs

fixed_xor.py (183B)


      1 key = "1c0111001f010100061a024b53535009181c"
      2 msg = "686974207468652062756c6c277320657965"
      3 
      4 print ''.join([chr(ord(a) ^ ord(b)) for a, b in zip(key.decode("hex"), msg.decode("hex"))])