Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/oslo_utils/__pycache__/secretutils.cpython-39.pyc
Ðазад
a s�h� � @ sz d Z ddlZddlZdd� Zz ejZW n ey< eZY n0 zejdd�Zdd d �ZW n e yt d dd �ZY n0 dS )z* Secret utilities. .. versionadded:: 3.5 � Nc C sX t | �} t |�}t| �t|�kr$dS d}t| |�D ]\}}|t|�t|�A O }q2|dkS )an Return True if both string or binary inputs are equal, otherwise False. This function should take a constant amount of time regardless of how many characters in the strings match. This function uses an approach designed to prevent timing analysis by avoiding content-based short circuiting behaviour, making it appropriate for cryptography. Fr )�str�len�zip�ord)�first�second�result�x�y� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/oslo_utils/secretutils.py�_constant_time_compare s r F��usedforsecurity� Tc C s t j| |d�S )a Return an md5 hashlib object using usedforsecurity parameter For python distributions that support the usedforsecurity keyword parameter, this passes the parameter through as expected. See https://bugs.python.org/issue9216 r ��hashlib�md5��stringr r r r r 4 s r c C s t �| �S )z�Return an md5 hashlib object without usedforsecurity parameter For python distributions that do not yet support this keyword parameter, we drop the parameter r r r r r r = s )r T)r T) �__doc__r �hmacr �compare_digestZconstant_time_compare�AttributeErrorr �_� TypeErrorr r r r �<module> s
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка