32

Is there any other module for md5?

Rohit
  • 61
  • 3
  • 10
rooney
  • 2,233
  • 4
  • 19
  • 10

3 Answers3

66

It is in hashlib

import hashlib
print(hashlib.md5('asd'.encode()).hexdigest())
Channel72
  • 24,139
  • 32
  • 108
  • 180
zerkms
  • 249,484
  • 69
  • 436
  • 539
4

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

thevilledev
  • 2,367
  • 1
  • 15
  • 19
3

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

MD5 have been replaced by the 'hashlib' module.

GT.
  • 901
  • 1
  • 6
  • 10