rooney
rooney

Reputation: 2433

Replacement for md5 module in Python 3?

Is there any other module for md5?

Upvotes: 32

Views: 33214

Answers (3)

zerkms
zerkms

Reputation: 255135

It is in hashlib

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

Upvotes: 67

GT.
GT.

Reputation: 901

From: http://www.python.org/dev/peps/pep-0004/

MD5 have been replaced by the 'hashlib' module.

Upvotes: 3

thevilledev
thevilledev

Reputation: 2397

It has been deprecated since version 2.5. You must use hashlib.

Upvotes: 4

Related Questions