403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/passlib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/passlib/__pycache__/exc.cpython-314.pyc
+
�THi�5����Rt!RR]4t!RR]4t!RR]4t!RR]4t!R	R
]4t!RR]4t!R
R]4t	!RR]4t
!RR]
4t!RR]
4t!RR]
4t
!RR]4t!RR]4t!RR]4t!RR]4t!RR ]4t!R!R"]4tR#tR$tR%tR&tR1R(ltR1R)ltR1R*ltR2R+ltR1R,ltR3R.ltR-tR4R/lt R5R0lt!R'#)6z6passlib.exc -- exceptions & warnings raised by passlibc�*a�]tRt^toRtRtRtVtR#)�UnknownBackendErrorz
Error raised if multi-backend handler doesn't recognize backend name.
Inherits from :exc:`ValueError`.

.. versionadded:: 1.7
c�l�WnW nVPRV:2p\P	W4R#)z: unknown backend: N)�hasher�backend�name�
ValueError�__init__)�selfrr�messages&&& �-/usr/lib/python3/dist-packages/passlib/exc.pyr	�UnknownBackendError.__init__s/�������[�[�M�!4�W�K�@�����D�*�)rrN��__name__�
__module__�__qualname__�__firstlineno__�__doc__r	�__static_attributes__�__classdictcell__��
__classdict__s@rrrs�����+�+rrc��]tRt^tRtRtR#)�MissingBackendErrora~Error raised if multi-backend handler has no available backends;
or if specifically requested backend is not available.

:exc:`!MissingBackendError` derives
from :exc:`RuntimeError`, since it usually indicates
lack of an external library or OS feature.
This is primarily raised by handlers which depend on
external libraries (which is currently just
:class:`~passlib.hash.bcrypt`).
�N�rrrrrrrrrrr���	rrc��]tRt^#tRtRtR#)�InternalBackendErrorz�
Error raised if something unrecoverable goes wrong with backend call;
such as if ``crypt.crypt()`` returning a malformed hash.

.. versionadded:: 1.7.3
rNrrrrrr#���rrc��]tRt^,tRtRtR#)�PasswordValueErroran
Error raised if a password can't be hashed / verified for various reasons.
This exception derives from the builtin :exc:`!ValueError`.

May be thrown directly when password violates internal invariants of hasher
(e.g. some don't support NULL characters).  Hashers may also throw more specific subclasses,
such as :exc:`!PasswordSizeError`.

.. versionadded:: 1.7.3
rNrrrrr"r",rrr"c�2a�]tRt^9toRtRtRRltRtVtR#)�PasswordSizeErrora�
Error raised if a password exceeds the maximum size allowed
by Passlib (by default, 4096 characters); or if password exceeds
a hash-specific size limitation.

This exception derives from :exc:`PasswordValueError` (above).

Many password hash algorithms take proportionately larger amounts of time and/or
memory depending on the size of the password provided. This could present
a potential denial of service (DOS) situation if a maliciously large
password is provided to an application. Because of this, Passlib enforces
a maximum size limit, but one which should be *much* larger
than any legitimate password. :exc:`PasswordSizeError` derives
from :exc:`!ValueError`.

.. note::
    Applications wishing to use a different limit should set the
    ``PASSLIB_MAX_PASSWORD_SIZE`` environmental variable before
    Passlib is loaded. The value can be any large positive integer.

.. attribute:: max_size

    indicates the maximum allowed size.

.. versionadded:: 1.6
Nc�H�WnVfRp\PW4R#)Nz%password exceeds maximum allowed size)�max_sizer"r	)r
r&�msgs&&&rr	�PasswordSizeError.__init__Ws�� �
��;�9�C��#�#�D�.r)r&�N)	rrrrrr&r	rrrs@rr$r$9s�����6�H�/�/rr$c�.a�]tRt^atoRtRRltRtVtR#)�PasswordTruncateErrora=
Error raised if password would be truncated by hash.
This derives from :exc:`PasswordSizeError` (above).

Hashers such as :class:`~passlib.hash.bcrypt` can be configured to raises
this error by setting ``truncate_error=True``.

.. attribute:: max_size

    indicates the maximum allowed size.

.. versionadded:: 1.7
Nc��Vf RVPVP3,p\PWPV4R#)Nz1Password too long (%s truncates to %d characters))r�
truncate_sizer$r	)r
�clsr's&&&rr	�PasswordTruncateError.__init__ps?���;�E�����!�!�I��C�	�"�"�4�):�):�C�@rrr)rrs@rr+r+as�����A�Arr+c��]tRt^ytRtRtR#)�PasslibSecurityErrorz�
Error raised if critical security issue is detected
(e.g. an attempt is made to use a vulnerable version of a bcrypt backend).

.. versionadded:: 1.6.3
rNrrrrr1r1yr rr1c�2a�]tRt^�toRtRtRRltRtVtR#)�
TokenErrora�
Base error raised by v:mod:`passlib.totp` when
a token can't be parsed / isn't valid / etc.
Derives from :exc:`!ValueError`.

Usually one of the more specific subclasses below will be raised:

* :class:`MalformedTokenError` -- invalid chars, too few digits
* :class:`InvalidTokenError` -- no match found
* :class:`UsedTokenError` -- match found, but token already used

.. versionadded:: 1.7
zToken not acceptableNc�Z�Vf
VPp\P!W.VO5/VBR#r))�_default_messagerr	)r
r'�args�kwdss&&*,rr	�TokenError.__init__�s*���;��'�'�C����D�5��5��5rrr))	rrrrrr5r	rrrs@rr3r3�s�����.��6�6rr3c��]tRt^�tRtRtRtR#)�MalformedTokenErrorz�
Error raised by :mod:`passlib.totp` when a token isn't formatted correctly
(contains invalid characters, wrong number of digits, etc)
zUnrecognized tokenrN�rrrrrr5rrrrr:r:�s���
,�rr:c��]tRt^�tRtRtRtR#)�InvalidTokenErrorz{
Error raised by :mod:`passlib.totp` when a token is formatted correctly,
but doesn't match any tokens within valid range.
zToken did not matchrNr;rrrr=r=�s���
-�rr=c�2a�]tRt^�toRtRtRtRtRtVt	R#)�UsedTokenErrorz�
Error raised by :mod:`passlib.totp` if a token is reused.
Derives from :exc:`TokenError`.

.. autoattribute:: expire_time

.. versionadded:: 1.7
z5Token has already been used, please wait for another.Nc�h�VPRR4Vn\P!V.VO5/VBR#)�expire_timeN)�poprAr3r	)r
r6r7s&*,rr	�UsedTokenError.__init__�s-���8�8�M�4�8������D�0�4�0�4�0r)rA)
rrrrrr5rAr	rrrs@rr?r?�s$�����O���K�1�1rr?c�4a�]tRt^�toRtRRltRtRtVtR#)�UnknownHashErroraB
Error raised by :class:`~passlib.crypto.lookup_hash` if hash name is not recognized.
This exception derives from :exc:`!ValueError`.

As of version 1.7.3, this may also be raised if hash algorithm is known,
but has been disabled due to FIPS mode (message will include phrase "disabled for fips").

As of version 1.7.4, this may be raised if a :class:`~passlib.context.CryptContext`
is unable to identify the algorithm used by a password hash.

.. versionadded:: 1.7

.. versionchanged: 1.7.3
    added 'message' argument.

.. versionchanged:: 1.7.4
    altered call signature.
Nc�^�W nVfRV:2pWn\PWV4R#)Nzunknown hash algorithm: )�valuerrr	)r
rrGs&&&rr	�UnknownHashError.__init__�s-���
��?�0��	�:�G������D�5�1rc��VP#r))r)r
s&r�__str__�UnknownHashError.__str__�s���|�|�r)rrG�NN)	rrrrrr	rJrrrs@rrErE�s�����&2��rrEc��]tRt^�tRtRtR#)�PasslibWarningzlbase class for Passlib's user warnings,
derives from the builtin :exc:`UserWarning`.

.. versionadded:: 1.6
rNrrrrrNrN����rrNc��]tRt^�tRtRtR#)�PasslibConfigWarninga Warning issued when non-fatal issue is found related to the configuration
of a :class:`~passlib.context.CryptContext` instance.

This occurs primarily in one of two cases:

* The CryptContext contains rounds limits which exceed the hard limits
  imposed by the underlying algorithm.
* An explicit rounds value was provided which exceeds the limits
  imposed by the CryptContext.

In both of these cases, the code will perform correctly & securely;
but the warning is issued as a sign the configuration may need updating.

.. versionadded:: 1.6
rNrrrrrQrQ�s��rrQc��]tRt^�tRtRtR#)�PasslibHashWarninga�Warning issued when non-fatal issue is found with parameters
or hash string passed to a passlib hash class.

This occurs primarily in one of two cases:

* A rounds value or other setting was explicitly provided which
  exceeded the handler's limits (and has been clamped
  by the :ref:`relaxed<relaxed-keyword>` flag).

* A malformed hash string was encountered which (while parsable)
  should be re-encoded.

.. versionadded:: 1.6
rNrrrrrSrS�s��
rrSc��]tRtRtRtRtR#)�PasslibRuntimeWarningi
a$Warning issued when something unexpected happens during runtime.

The fact that it's a warning instead of an error means Passlib
was able to correct for the issue, but that it's anomalous enough
that the developers would love to hear under what conditions it occurred.

.. versionadded:: 1.6
rNrrrrrUrU
s��rrUc��]tRtRtRtRtR#)�PasslibSecurityWarningizlSpecial warning issued when Passlib encounters something
that might affect security.

.. versionadded:: 1.6
rNrrrrrWrWrOrrWc�.�V'd
VP#R#)z	<unnamed>)r��handlers&r�	_get_namer[+s��"�7�<�<�3��3rc��VPpVP'd-VPR9dVPRVP2#VfR#VP#)z<return pretty-printed string containing name of value's type�.�None)�__builtin__�builtins)�	__class__rr)rGr.s& r�	type_namerb2sL��
�/�/�C�
�~�~�~�#�.�.�0K�K��.�.�!��3�<�<�.�1�1��}���<�<�rc�>�\V4p\VRVRV24#)zGerror message when param was supposed to be one type, but found anotherz	 must be z, not )rb�	TypeError)rG�expected�paramrs&&& r�ExpectedTypeErrorrg<s*���U��D���w�i��z���v�>�?�?rc��\VRV4#)z8error message when param was supposed to be str or byteszstr or bytes)rg�rGrfs&&r�ExpectedStringErrorrjCs���U�N�E�:�:rNc�<�\V4p\RVRVR24#)zEraised when verify() method gets passed config string instead of hashz	expected z hash, got z config string instead�r[r�rZrs& r�MissingDigestErrorrnKs'���W��D��	�$��{�4�&�8N�O�P�Prc�4�\V4p\VR24#)zFraised by OS crypt() supporting hashes, which forbid NULLs in passwordz& does not allow NULL bytes in password)r[r"rms& r�NullPasswordErrorrpQs���W��D����&L�M�N�Nrc�2�\R\V4R24#)z5error raised if unrecognized hash provided to handlerznot a valid � hash)rr[rYs&r�InvalidHashErrorrsZs����Y�w�%7�$8��>�?�?rc�V�R\V4R2pV'd	VRVR2p\V4#)zAerror raised if recognized-but-malformed hash provided to handlerz
malformed rrz (�)rl)rZ�reason�texts&& r�MalformedHashErrorrx_s6��
�	�'�*�+�5�1�D�
���r�&���#���d��rc��\VR4#)zJerror raised if hash was recognized but contained zero-padded rounds fieldzzero-padded rounds)rxrYs&r�ZeroPaddedRoundsErrorrzgs���g�';�<�<rFc�\�VPpV'dRMRpRW#3,p\W4#)z@error raised if hash was recognized, but checksum was wrong size�bytes�charszchecksum must be exactly %d %s)�
checksum_sizerx)rZ�rawr~�unitrvs&&   r�ChecksumSizeErrorr�os0���)�)�M��7�w�D�
-��0E�
E�F��g�.�.rc��\'gVe\V\4'd\V4#RVR\	V4R2#)a�
helper used to display sensitive data (hashes etc) within error messages.
currently returns placeholder test UNLESS unittests are running,
in which case the real value is displayed.

mainly useful to prevent hashes / secrets from being exposed in production tracebacks;
while still being visible from test failures.

NOTE: api subject to change, may formalize this more in the future.
�<� z value omitted>)�ENABLE_DEBUG_ONLY_REPR�
isinstance�bool�repr�typeris&&r�debug_only_reprr�}s=������*�U�D�2I�2I��E�{��
�u�g�Q�t�E�{�m�?�3�3rc	�l�\V4pVRVR\V4R\V42p\V4h)z�
helper to generate standard message when ``crypt.crypt()`` returns invalid result.
takes care of automatically masking contents of config & hash outside of UTs.
z returned invalid z hash: config=z hash=)r[r�r)rZ�config�hash�sourcerr's&&&&  r�CryptBackendErrorr��sE���W��D�
�H�&�t�f�N�?�6�;R�:S�SY�Zi�jn�Zo�Yp�
q�C�
�s�
#�#rr)rL)F)r�)z
crypt.crypt())"rrr�RuntimeErrorrrr"r$r+r1r3r:r=r?rE�UserWarningrNrQrSrUrWr[rbrgrjrnrprsrxrzr�r�r�r�rrr�<module>r�s!��<�+�*�+�$
�,�
��<��
��
�"/�*�"/�PA�-�A�0�<��6��6�0,�*�,�-�
�-�1�Z�1�*�z��>�[���>��$���"�N���^��&4��@�;�Q�O�@�
�=�/���
4� $r

Youez - 2016 - github.com/yon3zu
LinuXploit