Crypto pals challenges done in python 2.7 https://cryptopals.com/ Copying or using these for any kind of reference is not recommended; definite work in progress. Seriously, there are better code examples, feel free to take a look just be warned.