问题
Is there any other module for md5?
回答1:
It is in hashlib
import hashlib
print(hashlib.md5('asd'.encode()).hexdigest())
回答2:
It has been deprecated since version 2.5. You must use hashlib.
回答3:
From: http://www.python.org/dev/peps/pep-0004/
MD5 have been replaced by the 'hashlib' module.
来源:https://stackoverflow.com/questions/4954602/replacement-for-md5-module-in-python-3