o
    Bd\R/  ã                   @   s€   d Z dZg d¢ZddlT ddlmZ z	ddlZejZW n e	y*   ddlZeZY nw G dd„ deƒZ
dd	d
„Ze
jZe
jZdS )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                   @   s4   e Zd ZdZedƒZdZdZd
dd„Zd
dd	„Z	dS )r   zIClass that implements an MD5 hash
    
    :undocumented: block_size
    u   *Â†HÂ†Ã·é   é@   Nc                 C   s   t  | t|¡ d S ©N)r   Ú__init__ÚhashFactory©ÚselfÚdata© r   úA/var/www/html/env/lib/python3.10/site-packages/Crypto/Hash/MD5.pyr
   I   s   zMD5Hash.__init__c                 C   s   t |ƒS r	   )r   r   r   r   r   r   L   s   zMD5Hash.newr	   )
Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚbÚoidr   Ú
block_sizer
   r   r   r   r   r   r   6   s    
r   c                 C   s   t ƒ  | ¡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   r   r   r   r   O   s   r   r	   )r   Ú_revision__Ú__all__ÚCrypto.Util.py3compatÚCrypto.Hash.hashalgor   ÚhashlibÚmd5r   ÚImportErrorr   r   r   r   r   r   r   r   Ú<module>   s    
þ

