o
    U»’hó  ã                   @   sz   d dl ZejjZed ZejjZejjZ	ejj
Zed ZejjZejjZejjZejjZejjZdededefdd„ZdS )é    Né   Úpassword_hashÚpasswordÚreturnc                 C   s   t j | |¡S )a¡  
    Takes a modular crypt encoded argon2i or argon2id stored password hash
    and checks if the user provided password will hash to the same string
    when using the stored parameters

    :param password_hash: password hash serialized in modular crypt() format
    :type password_hash: bytes
    :param password: user provided password
    :type password: bytes
    :rtype: boolean

    .. versionadded:: 1.2
    )ÚnaclÚbindingsÚcrypto_pwhash_str_verify)r   r   © r	   úF/var/www/html/venv/lib/python3.10/site-packages/nacl/pwhash/_argon2.pyÚverify#   s   r   )Únacl.bindingsr   r   Úcrypto_pwhash_STRBYTESÚ_argon2_strbytes_plus_oneÚPWHASH_SIZEÚcrypto_pwhash_SALTBYTESÚ	SALTBYTESÚcrypto_pwhash_PASSWD_MINÚ
PASSWD_MINÚcrypto_pwhash_PASSWD_MAXÚ
PASSWD_MAXÚcrypto_pwhash_BYTES_MAXÚ	BYTES_MAXÚcrypto_pwhash_BYTES_MINÚ	BYTES_MINÚcrypto_pwhash_ALG_ARGON2I13ÚALG_ARGON2I13Úcrypto_pwhash_ALG_ARGON2ID13ÚALG_ARGON2ID13Úcrypto_pwhash_ALG_DEFAULTÚALG_ARGON2_DEFAULTÚbytesÚboolr   r	   r	   r	   r
   Ú<module>   s   