passlib 1.9.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- passlib/__init__.py +3 -0
- passlib/_data/wordsets/bip39.txt +2049 -0
- passlib/_data/wordsets/eff_long.txt +7776 -0
- passlib/_data/wordsets/eff_prefixed.txt +1296 -0
- passlib/_data/wordsets/eff_short.txt +1296 -0
- passlib/_logging.py +3 -0
- passlib/_protocols.py +33 -0
- passlib/apache.py +1106 -0
- passlib/apps.py +215 -0
- passlib/context.py +1944 -0
- passlib/crypto/__init__.py +1 -0
- passlib/crypto/_blowfish/__init__.py +153 -0
- passlib/crypto/_blowfish/_gen_files.py +238 -0
- passlib/crypto/_blowfish/base.py +1212 -0
- passlib/crypto/_blowfish/unrolled.py +1664 -0
- passlib/crypto/_md4.py +229 -0
- passlib/crypto/des.py +2250 -0
- passlib/crypto/digest.py +760 -0
- passlib/crypto/scrypt/__init__.py +273 -0
- passlib/crypto/scrypt/_builtin.py +220 -0
- passlib/crypto/scrypt/_gen_files.py +142 -0
- passlib/crypto/scrypt/_salsa.py +180 -0
- passlib/exc.py +409 -0
- passlib/ext/__init__.py +1 -0
- passlib/ext/django/__init__.py +6 -0
- passlib/ext/django/models.py +21 -0
- passlib/ext/django/utils.py +1181 -0
- passlib/handlers/__init__.py +1 -0
- passlib/handlers/argon2.py +999 -0
- passlib/handlers/bcrypt.py +996 -0
- passlib/handlers/cisco.py +396 -0
- passlib/handlers/des_crypt.py +504 -0
- passlib/handlers/digests.py +149 -0
- passlib/handlers/django.py +510 -0
- passlib/handlers/fshp.py +185 -0
- passlib/handlers/ldap_digests.py +356 -0
- passlib/handlers/md5_crypt.py +286 -0
- passlib/handlers/misc.py +201 -0
- passlib/handlers/mssql.py +217 -0
- passlib/handlers/mysql.py +92 -0
- passlib/handlers/oracle.py +137 -0
- passlib/handlers/pbkdf2.py +454 -0
- passlib/handlers/phpass.py +110 -0
- passlib/handlers/postgres.py +34 -0
- passlib/handlers/roundup.py +18 -0
- passlib/handlers/scram.py +532 -0
- passlib/handlers/scrypt.py +357 -0
- passlib/handlers/sha1_crypt.py +121 -0
- passlib/handlers/sha2_crypt.py +562 -0
- passlib/handlers/sun_md5_crypt.py +334 -0
- passlib/handlers/windows.py +299 -0
- passlib/hash.py +106 -0
- passlib/hosts.py +85 -0
- passlib/ifc.py +307 -0
- passlib/pwd.py +709 -0
- passlib/registry.py +547 -0
- passlib/totp.py +1852 -0
- passlib/utils/__init__.py +901 -0
- passlib/utils/binary.py +852 -0
- passlib/utils/compat/__init__.py +141 -0
- passlib/utils/decor.py +220 -0
- passlib/utils/des.py +31 -0
- passlib/utils/handlers.py +2616 -0
- passlib/utils/md4.py +25 -0
- passlib/utils/pbkdf2.py +172 -0
- passlib-1.9.5.dist-info/METADATA +90 -0
- passlib-1.9.5.dist-info/RECORD +69 -0
- passlib-1.9.5.dist-info/WHEEL +4 -0
- passlib-1.9.5.dist-info/licenses/LICENSE +116 -0
passlib/_logging.py
ADDED
passlib/_protocols.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from collections.abc import Callable
|
|
4
|
+
from typing import TYPE_CHECKING, Protocol
|
|
5
|
+
|
|
6
|
+
if TYPE_CHECKING:
|
|
7
|
+
from typing import Self
|
|
8
|
+
|
|
9
|
+
from typing_extensions import Buffer
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class HashLike(Protocol):
|
|
13
|
+
"""Lifted from hashlib.pyi."""
|
|
14
|
+
|
|
15
|
+
@property
|
|
16
|
+
def digest_size(self) -> int: ...
|
|
17
|
+
|
|
18
|
+
@property
|
|
19
|
+
def block_size(self) -> int: ...
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def name(self) -> str: ...
|
|
23
|
+
|
|
24
|
+
def copy(self) -> Self: ...
|
|
25
|
+
|
|
26
|
+
def digest(self) -> bytes: ...
|
|
27
|
+
|
|
28
|
+
def hexdigest(self) -> str: ...
|
|
29
|
+
|
|
30
|
+
def update(self, data: Buffer, /) -> None: ...
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
SHAFunc = Callable[[], HashLike]
|