B Bd\R/ ã@s„dZdZdddgZddlTddlmZyddlZejZWn e k rXddlZeZYnXGd d„deƒZ d d d„Z e j Z e j Z dS) a¦MD5 cryptographic hash algorithm. MD5 is specified in RFC1321_ and produces the 128 bit digest of a message. >>> from Crypto.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. .. _RFC1321: http://tools.ietf.org/html/rfc1321 z$Id$ÚnewÚ digest_sizeÚMD5Hashé)Ú*)ÚHashAlgoNc@s4eZdZdZedƒZdZdZd dd„Zd dd „Z dS) rzIClass that implements an MD5 hash :undocumented: block_size u *†H†÷ éé@NcCst |t|¡dS)N)rÚ__init__Ú hashFactory)ÚselfÚdata©r úB/opt/alt/python37/lib64/python3.7/site-packages/Crypto/Hash/MD5.pyr IszMD5Hash.__init__cCst|ƒS)N)r)r r r r rrLsz MD5Hash.new)N)N) Ú__name__Ú __module__Ú __qualname__Ú__doc__ÚbZoidrÚ block_sizer rr r r rr6s   cCs tƒ |¡S)aReturn a fresh instance of the hash object. :Parameters: data : byte string The very first chunk of the message to hash. It is equivalent to an early call to `MD5Hash.update()`. Optional. :Return: A `MD5Hash` object )rr)r r r rrOs )N)rZ _revision__Ú__all__ZCrypto.Util.py3compatZCrypto.Hash.hashalgorZhashlibZmd5r Ú ImportErrorrrrrr r r rÚ$s