%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3.9/site-packages/ansible/utils/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3.9/site-packages/ansible/utils/__pycache__/hashing.cpython-39.pyc

a

�)gX�@s�ddlmZmZmZeZddlZddlmZzddlm	Z
WneyRdZ
Yn0ddlm
Z
ddlmZefdd�Zefd	d
�ZeZeZdd�Zd
d�Z	dS)�)�absolute_import�division�print_functionN)�sha1)�md5)�AnsibleError)�to_bytescCs$|�}t|dd�}|�|�|��S)z* Return a secure hash hex digest of data. �surrogate_or_strict��errors)r�update�	hexdigest)�data�	hash_func�digest�r�9/usr/lib/python3.9/site-packages/ansible/utils/hashing.py�
secure_hash_s$s
rc
Cs�tj�t|dd��r(tj�t|dd��r,dS|�}d}zBtt|dd�d�}|�|�}|rn|�|�|�|�}qT|��Wn4t	y�}zt
d||f��WYd}~n
d}~00|��S)z\ Return a secure hash hex digest of local file, None if file is not present or a directory. r	r
�strictNi�rbz0error while accessing the file %s, error was: %s)�os�path�existsr�isdir�open�readr�close�IOErrorrr
)�filenamerr�	blocksizeZinfile�block�errr�secure_hash-s(

&r"cCststd��t|t�S�Nz1MD5 not available.  Possibly running in FIPS mode)�_md5�
ValueErrorr)rrrr�md5sPsr&cCststd��t|t�Sr#)r$r%r")rrrrrVsr)Z
__future__rrr�typeZ
__metaclass__rZhashlibrrr$�ImportErrorZansible.errorsrZansible.module_utils._textrrr"ZchecksumZ
checksum_sr&rrrr�<module>s
	

Zerion Mini Shell 1.0