HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //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