%PDF- %PDF-
| Direktori : /lib/python3.9/site-packages/passlib/utils/__pycache__/ |
| Current File : //lib/python3.9/site-packages/passlib/utils/__pycache__/des.cpython-39.pyc |
a
f�Wcs � @ s� d Z ddlmZ ede� ddlmZ ddlmZmZm Z edddd �e�Zeddd
d �e�Zedddd �e �Z ddl
Z
e
�d
�jZ
edddd �ddd��ZdS )zt
passlib.utils.des - DEPRECATED LOCATION, WILL BE REMOVED IN 2.0
This has been moved to :mod:`passlib.crypto.des`.
� )�warnz�the 'passlib.utils.des' module has been relocated to 'passlib.crypto.des' as of passlib 1.7, and the old location will be removed in passlib 2.0)�deprecated_function)�expand_des_key�des_encrypt_block�des_encrypt_int_blockz1.7z1.8z!passlib.crypto.des.expand_des_key)Z
deprecatedZremovedZreplacementz$passlib.crypto.des.des_encrypt_blockz(passlib.crypto.des.des_encrypt_int_blockNz>Qz1.6z*passlib.crypto.des.des_encrypt_int_block()� c C s8 t | t�r*t| �dkrt| �} t| �d } t| |||�S )N� r )�
isinstance�bytes�lenr �_unpack_uint64r )�key�inputZsalt�rounds� r �5/usr/lib/python3.9/site-packages/passlib/utils/des.py�mdes_encrypt_int_block# s
r )r r )�__doc__�warningsr �DeprecationWarningZpasslib.utils.decorr Zpasslib.crypto.desr r r �struct�Struct�unpackr r r r r r �<module> s6 ��������