Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/twisted/plugins/__pycache__/cred_unix.cpython-39.pyc
Ðазад
a k�h? � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z ddlmZ ddl mZ d d � Zee�G dd� d��Zd Zeeej�G dd� d��Ze� ZdS )z% Cred plugin for UNIX user accounts. � )�implementer)�plugin)�ICredentialsChecker)�IUsernamePassword)�UnauthorizedLogin)�ICheckerFactory)�deferc C s� zddl }W n ty" d}Y n0 |du r4td��t|t�rH|�d�}t| t�r\| �d�} z*|� || �}t|t�r~|�d�}|| kW S ty� Y dS 0 dS )a� Use L{crypt.crypt} to Verify that an unencrypted password matches the encrypted password. @param crypted: The encrypted password, obtained from the Unix password database or Unix shadow password database. @param pw: The unencrypted password. @return: L{True} if there is successful match, else L{False}. @rtype: L{bool} r Nz(cred_unix not supported on this platform�utf-8F)�crypt�ImportError�NotImplementedError� isinstance�bytes�decode�OSError)Zcrypted�pwr Z crypted_check� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/twisted/plugins/cred_unix.py�verifyCryptedPassword s"