| Server IP : 157.22.201.140 / Your IP : 216.73.216.74 Web Server : nginx/1.30.1 System : Linux mit.vincode.fvds.ru 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/passlib/__pycache__/ |
Upload File : |
�
XR_t7 � � � d Z ddlZ ej e� ZddlZddlmZ dgZd� Z ddl
mZmZm
Z
e e� G d� de� � Z G d� d e� Zy)
z1passlib.ifc - abstract interfaces used by Passlib� N)�deprecated_method�PasswordHashc � � � � fd�}|S )z5class decorator that re-creates class using metaclassc � �� �t | � u r| S �| j | j | j j � � S �N)�type�__name__� __bases__�__dict__�copy)�cls�metas ��-/usr/lib/python3/dist-packages/passlib/ifc.py�builderz(recreate_with_metaclass.<locals>.builder s8 �� ��4��9���J��C�L�L�#�-�-����1B�1B�1D�E�E� � )r r s ` r �recreate_with_metaclassr s �� �F� �Nr )�ABCMeta�abstractmethod�abstractpropertyc � � e Zd ZdZdZdZdZdZee d� � � Z
eddd� � ed
� � � Zee d� � � Z
ee dd�� � Zedd
�� Zee d� � � Z edd�� ed� � � Z edd�� ed� � � ZdZy)r z�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.
FNTc � � t d� �)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 subclass��NotImplementedError)r
�secret�setting_and_context_kwdss r �hashzPasswordHash.hashr s � �6 "�"C�D�Dr z1.7z2.0z.hash())�
deprecated�removed�replacementc �&