Replacement for md5 module in Python 3?

rooney picture rooney · Feb 10, 2011 · Viewed 26.9k times · Source

Is there any other module for md5?

Answer

zerkms picture zerkms · Feb 10, 2011

It is in hashlib

import hashlib
print(hashlib.md5('asd'.encode()).hexdigest())