%PDF- %PDF-
| Direktori : /usr/lib/python3.9/site-packages/passlib/utils/__pycache__/ |
| Current File : //usr/lib/python3.9/site-packages/passlib/utils/__pycache__/pbkdf2.cpython-39.opt-1.pyc |
a
f�Wc� � @ s� d Z ddlmZ ddlZe�e�ZddlmZ ddl m
Z
ddlmZ ddl
mZmZmZmZmZ g d�Zdd lmZ ed
e� e
dded
d�e�Zi adZdd� Zddd�Zddd�ZdS )z�passlib.pbkdf2 - PBKDF2 support
this module is getting increasingly poorly named.
maybe rename to "kdf" since it's getting more key derivation functions added.
� )�divisionN)�ExpectedTypeError)�deprecated_function)�native_string_types)�norm_hash_name�lookup_hash�pbkdf1�pbkdf2_hmac�compile_hmac)r �get_prfr �pbkdf2)�warnz�the module 'passlib.utils.pbkdf2' is deprecated as of Passlib 1.7, and will be removed in Passlib 2.0, please use 'passlib.crypto' insteadz1.7z1.8z$passlib.crypto.digest.norm_hash_name)Z
deprecatedZremovedZfunc_moduleZreplacement)Zhmac_zhmac-c s� | t v rt | S t| t�r^| �t�s2td| f ��t| dd� �j� � fdd�}||jj f}n,t
| �r~t| dd��}| |f}nt| dd ��|t | <