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 : |
a f�Wc�8 � @ s� d Z G dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG d d � d e�ZG dd� de�ZG d d� de�Z G dd� de�Z G dd� de �ZG dd� de �ZG dd� de �Z G dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�ZG d!d"� d"e�Zd#d$� Zd%d&� Zd'd(� Zd)d*� Zd?d,d-�Zd@d.d/�ZdAd0d1�ZdBd2d3�ZdCd4d5�ZdDd7d8�Zd6ZdEd:d;�Z dFd=d>�Z!d+S )Gz6passlib.exc -- exceptions & warnings raised by passlibc @ s e Zd ZdZdd� ZdS )�UnknownBackendErrorz� Error raised if multi-backend handler doesn't recognize backend name. Inherits from :exc:`ValueError`. .. versionadded:: 1.7 c C s* || _ || _d|j|f }t�| |� d S )Nz%s: unknown backend: %r)�hasher�backend�name� ValueError�__init__)�selfr r �message� r �//usr/lib/python3.9/site-packages/passlib/exc.pyr s zUnknownBackendError.__init__N��__name__� __module__�__qualname__�__doc__r r r r r r s r c @ s e Zd ZdZdS )�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�r r r r r r r r r s r c @ s e Zd ZdZdS )�InternalBackendErrorz� Error raised if something unrecoverable goes wrong with backend call; such as if ``crypt.crypt()`` returning a malformed hash. .. versionadded:: 1.7.3 Nr r r r r r # s r c @ s e Zd ZdZdS )�PasswordValueErrora� 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 Nr r r r r r , s r c @ s e Zd ZdZdZddd�ZdS )�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 C s"