403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib/python3.9/site-packages/passlib/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/passlib/__pycache__/ifc.cpython-39.opt-1.pyc
a

f�Wct7�@sxdZddlZe�e�ZddlZddlmZdgZdd�Z	ddl
mZmZm
Z
e	e�Gdd�de��ZGd	d
�d
e�ZdS)z1passlib.ifc - abstract interfaces used by Passlib�N)�deprecated_method�PasswordHashcs�fdd�}|S)z5class decorator that re-creates class using metaclasscs&�t|�ur|S�|j|j|j���S)N)�type�__name__�	__bases__�__dict__�copy)�cls��meta��//usr/lib/python3.9/site-packages/passlib/ifc.py�buildersz(recreate_with_metaclass.<locals>.builderr)rrrr
r
�recreate_with_metaclasssr)�ABCMeta�abstractmethod�abstractpropertyc@s�eZdZdZdZdZdZdZee	dd���Z
eddd	d
�edd���Zee	d
d���Z
ee	ddd���Zeddd��Zee	dd���Zeddd�edd���Zeddd�edd���ZdZdS)rz�This class describes an abstract interface which all password hashes
    in Passlib adhere to. Under Python 2.6 and up, this is an actual
    Abstract Base Class built using the :mod:`!abc` module.

    See the Passlib docs for full documentation.
    FNTcKstd��dS)a
        Hash secret, returning result.
        Should handle generating salt, etc, and should return string
        containing identifier, salt & other configuration, as well as digest.

        :param \\*\\*settings_kwds:

            Pass in settings to customize configuration of resulting hash.

            .. deprecated:: 1.7

                Starting with Passlib 1.7, callers should no longer pass settings keywords
                (e.g. ``rounds`` or ``salt`` directly to :meth:`!hash`); should use
                ``.using(**settings).hash(secret)`` construction instead.

                Support will be removed in Passlib 2.0.

        :param \\*\\*context_kwds:

            Specific algorithms may require context-specific information (such as the user login).
        �must be implemented by subclassN��NotImplementedError)r	�secretZsetting_and_context_kwdsrrr
�hashrszPasswordHash.hashz1.7z2.0z.hash())�
deprecated�removedZreplacementcOs|j|i|��S)a
        Legacy alias for :meth:`hash`.

        .. deprecated:: 1.7
            This method was renamed to :meth:`!hash` in version 1.7.
            This alias will be removed in version 2.0, and should only
            be used for compatibility with Passlib 1.3 - 1.6.
        �r)r	�args�kwdsrrr
�encrypt�szPasswordHash.encryptcKstd��dS)z.verify secret against hash, returns True/FalserNr)r	rr�context_kwdsrrr
�verify�szPasswordHash.verifycKstd��dS)a�
        Return another hasher object (typically a subclass of the current one),
        which integrates the configuration options specified by ``kwds``.
        This should *always* return a new object, even if no configuration options are changed.

        .. todo::

            document which options are accepted.

        :returns:
            typically returns a subclass for most hasher implementations.

        .. todo::

            add this method to main documentation.
        rNr)r	Zrelaxedrrrr
�using�szPasswordHash.usingcCsdS)a�
        check if hash's configuration is outside desired bounds,
        or contains some other internal option which requires
        updating the password hash.

        :param hash:
            hash string to examine

        :param secret:
            optional secret known to have verified against the provided hash.
            (this is used by some hashes to detect legacy algorithm mistakes).

        :return:
            whether secret needs re-hashing.

        .. versionadded:: 1.7
        Fr)r	rrrrr
�needs_update�szPasswordHash.needs_updatecCstd��dS)z8check if hash belongs to this scheme, returns True/FalserNr�r	rrrr
�identify�szPasswordHash.identify)rrcKs$|jrtd��|jfi|���d�S)a�
        compile settings into a configuration string for genhash()

        .. deprecated:: 1.7

            As of 1.7, this method is deprecated, and slated for complete removal in Passlib 2.0.

            For all known real-world uses, hashing a constant string
            should provide equivalent functionality.

            This deprecation may be reversed if a use-case presents itself in the mean time.
        r�)rrr r)r	Zsetting_kwdsrrr
�	genconfig�szPasswordHash.genconfigcKstd��dS)a1
        generated hash for secret, using settings from config/hash string

        .. deprecated:: 1.7

            As of 1.7, this method is deprecated, and slated for complete removal in Passlib 2.0.

            This deprecation may be reversed if a use-case presents itself in the mean time.
        rNr)r	rZconfig�contextrrr
�genhash�s
zPasswordHash.genhash)F)N)r�
__module__�__qualname__�__doc__�is_disabledZ
truncate_sizeZtruncate_errorZtruncate_verify_reject�classmethodrrrrrr r!r#r%r'rrrrr
r%s:	


 c@s.eZdZdZdZeddd��Zedd��ZdS)	�DisabledHashzR
    extended disabled-hash methods; only need be present if .disabled = True
    TNcCs
|�d�S)z�
        return string representing a 'disabled' hash;
        optionally including previously enabled hash
        (this is up to the individual scheme).
        r$rr"rrr
�disableKszDisabledHash.disablecCstd��dS)z�
        given a disabled-hash string,
        extract previously-enabled hash if one is present,
        otherwise raises ValueError
        zcannot restore original hashN)�
ValueErrorr"rrr
�enableUszDisabledHash.enable)N)rr(r)r*r+r,r.r0rrrr
r-Ds	r-)r*ZloggingZ	getLoggerr�log�sysZpasslib.utils.decorr�__all__r�abcrrr�objectrr-rrrr
�<module>s� 

Youez - 2016 - github.com/yon3zu
LinuXploit