Reputation: 2433
Is there any other module for md5?
Upvotes: 32
Views: 33214
Reputation: 255135
It is in hashlib
import hashlib
print(hashlib.md5('asd'.encode()).hexdigest())
Upvotes: 67
Reputation: 901
From: http://www.python.org/dev/peps/pep-0004/
MD5 have been replaced by the 'hashlib' module.
Upvotes: 3
Reputation: 2397
It has been deprecated since version 2.5. You must use hashlib.
Upvotes: 4