MD5 Hash in Python 3000
I normally use Python to quickly calculate MD5 hashes, so you can imagine my surprise when after typing 'import md5' Python returned 'ImportError: No module named md5'. It turns out that Python 3000 has decommissioned the md5 library in favor of hashlib, and it had been deprecated in Python 2.6...
>>> from hashlib import md5 >>> md5(bytes("password", "utf-8")).hexdigest() '5f4dcc3b5aa765d61d8327deb882cf99'