Package Cryptodome :: Package Hash :: Module MD5

Module MD5

MD5 cryptographic hash algorithm.

MD5 is specified in RFC1321 and produces the 128 bit digest of a message.

>>> from Cryptodome.Hash import MD5
>>>
>>> h = MD5.new()
>>> h.update(b'Hello')
>>> print h.hexdigest()

MD5 stand for Message Digest version 5, and it was invented by Rivest in 1991.

This algorithm is insecure. Do not use it for new designs.

Classes
  new
Variables
  digest_size = 16
The size of the resulting hash in bytes.
  block_size = 64
The internal block size of the hash algorithm in bytes.