
    Eh/                         d Z dZg dZddl ddlmZ 	 ddlZej                  Z G d de      Z
d
d	Ze
j                  Ze
j                  Zy# e	$ r	 ddlZeZY 5w xY w)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                   8    e Zd ZdZ ed      ZdZdZddZddZ	y)	r   zIClass that implements an MD5 hash
    
    :undocumented: block_size
    u   *H÷   @   Nc                 :    t        j                  | t        |       y N)r   __init__hashFactoryselfdatas     P/var/www/html/bid_assistant/venv/lib/python3.12/site-packages/Crypto/Hash/MD5.pyr   zMD5Hash.__init__I   s    $T2    c                     t        |      S r   )r   r   s     r   r   zMD5Hash.newL   s    t}r   r   )
__name__
__module____qualname____doc__boidr   
block_sizer   r    r   r   r   r   6   s(     6
7CKJ3r   r   c                 4    t               j                  |       S )a  Return 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
    )r   r   )r   s    r   r   r   O   s     9==r   r   )r   _revision____all__Crypto.Util.py3compatCrypto.Hash.hashalgor   hashlibmd5r   ImportErrorr   r   r   r   r   r   r   <module>r%      sr   *" 
, # )++Kh 2 !! 
]  Ks   A AA