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.
Files changed (69) hide show
  1. passlib/__init__.py +3 -0
  2. passlib/_data/wordsets/bip39.txt +2049 -0
  3. passlib/_data/wordsets/eff_long.txt +7776 -0
  4. passlib/_data/wordsets/eff_prefixed.txt +1296 -0
  5. passlib/_data/wordsets/eff_short.txt +1296 -0
  6. passlib/_logging.py +3 -0
  7. passlib/_protocols.py +33 -0
  8. passlib/apache.py +1106 -0
  9. passlib/apps.py +215 -0
  10. passlib/context.py +1944 -0
  11. passlib/crypto/__init__.py +1 -0
  12. passlib/crypto/_blowfish/__init__.py +153 -0
  13. passlib/crypto/_blowfish/_gen_files.py +238 -0
  14. passlib/crypto/_blowfish/base.py +1212 -0
  15. passlib/crypto/_blowfish/unrolled.py +1664 -0
  16. passlib/crypto/_md4.py +229 -0
  17. passlib/crypto/des.py +2250 -0
  18. passlib/crypto/digest.py +760 -0
  19. passlib/crypto/scrypt/__init__.py +273 -0
  20. passlib/crypto/scrypt/_builtin.py +220 -0
  21. passlib/crypto/scrypt/_gen_files.py +142 -0
  22. passlib/crypto/scrypt/_salsa.py +180 -0
  23. passlib/exc.py +409 -0
  24. passlib/ext/__init__.py +1 -0
  25. passlib/ext/django/__init__.py +6 -0
  26. passlib/ext/django/models.py +21 -0
  27. passlib/ext/django/utils.py +1181 -0
  28. passlib/handlers/__init__.py +1 -0
  29. passlib/handlers/argon2.py +999 -0
  30. passlib/handlers/bcrypt.py +996 -0
  31. passlib/handlers/cisco.py +396 -0
  32. passlib/handlers/des_crypt.py +504 -0
  33. passlib/handlers/digests.py +149 -0
  34. passlib/handlers/django.py +510 -0
  35. passlib/handlers/fshp.py +185 -0
  36. passlib/handlers/ldap_digests.py +356 -0
  37. passlib/handlers/md5_crypt.py +286 -0
  38. passlib/handlers/misc.py +201 -0
  39. passlib/handlers/mssql.py +217 -0
  40. passlib/handlers/mysql.py +92 -0
  41. passlib/handlers/oracle.py +137 -0
  42. passlib/handlers/pbkdf2.py +454 -0
  43. passlib/handlers/phpass.py +110 -0
  44. passlib/handlers/postgres.py +34 -0
  45. passlib/handlers/roundup.py +18 -0
  46. passlib/handlers/scram.py +532 -0
  47. passlib/handlers/scrypt.py +357 -0
  48. passlib/handlers/sha1_crypt.py +121 -0
  49. passlib/handlers/sha2_crypt.py +562 -0
  50. passlib/handlers/sun_md5_crypt.py +334 -0
  51. passlib/handlers/windows.py +299 -0
  52. passlib/hash.py +106 -0
  53. passlib/hosts.py +85 -0
  54. passlib/ifc.py +307 -0
  55. passlib/pwd.py +709 -0
  56. passlib/registry.py +547 -0
  57. passlib/totp.py +1852 -0
  58. passlib/utils/__init__.py +901 -0
  59. passlib/utils/binary.py +852 -0
  60. passlib/utils/compat/__init__.py +141 -0
  61. passlib/utils/decor.py +220 -0
  62. passlib/utils/des.py +31 -0
  63. passlib/utils/handlers.py +2616 -0
  64. passlib/utils/md4.py +25 -0
  65. passlib/utils/pbkdf2.py +172 -0
  66. passlib-1.9.5.dist-info/METADATA +90 -0
  67. passlib-1.9.5.dist-info/RECORD +69 -0
  68. passlib-1.9.5.dist-info/WHEEL +4 -0
  69. passlib-1.9.5.dist-info/licenses/LICENSE +116 -0
passlib/utils/md4.py ADDED
@@ -0,0 +1,25 @@
1
+ """
2
+ passlib.utils.md4 - DEPRECATED MODULE, WILL BE REMOVED IN 2.0
3
+
4
+ MD4 should now be looked up through ``passlib.crypto.digest.lookup_hash("md4").const``,
5
+ which provides unified handling stdlib implementation (if present).
6
+ """
7
+
8
+ from warnings import warn
9
+
10
+ from passlib.crypto.digest import lookup_hash
11
+
12
+ warn(
13
+ "the module 'passlib.utils.md4' is deprecated as of Passlib 1.7, "
14
+ "and will be removed in Passlib 2.0, please use "
15
+ "'lookup_hash(\"md4\").const()' from 'passlib.crypto' instead",
16
+ DeprecationWarning,
17
+ )
18
+
19
+ __all__ = ["md4"]
20
+
21
+ # this should use hashlib version if available,
22
+ # and fall back to builtin version.
23
+
24
+ md4 = lookup_hash("md4").const
25
+ del lookup_hash
@@ -0,0 +1,172 @@
1
+ """passlib.pbkdf2 - PBKDF2 support
2
+
3
+ this module is getting increasingly poorly named.
4
+ maybe rename to "kdf" since it's getting more key derivation functions added.
5
+ """
6
+
7
+ from collections.abc import Mapping
8
+ from warnings import warn
9
+
10
+ from passlib.crypto.digest import (
11
+ compile_hmac,
12
+ lookup_hash,
13
+ pbkdf2_hmac,
14
+ )
15
+ from passlib.crypto.digest import (
16
+ pbkdf1 as _pbkdf1,
17
+ )
18
+ from passlib.exc import ExpectedTypeError
19
+
20
+ __all__ = [
21
+ # prf utils
22
+ "get_prf",
23
+ # kdfs
24
+ "pbkdf1",
25
+ "pbkdf2",
26
+ ]
27
+
28
+
29
+ warn(
30
+ "the module 'passlib.utils.pbkdf2' is deprecated as of Passlib 1.7, "
31
+ "and will be removed in Passlib 2.0, please use 'passlib.crypto' instead",
32
+ DeprecationWarning,
33
+ )
34
+
35
+
36
+ #: cache mapping prf name/func -> (func, digest_size)
37
+ _prf_cache: Mapping[str, tuple[str, int]] = {}
38
+
39
+ #: list of accepted prefixes
40
+ _HMAC_PREFIXES = ("hmac_", "hmac-")
41
+
42
+
43
+ def get_prf(name):
44
+ """Lookup pseudo-random family (PRF) by name.
45
+
46
+ :arg name:
47
+ This must be the name of a recognized prf.
48
+ Currently this only recognizes names with the format
49
+ :samp:`hmac-{digest}`, where :samp:`{digest}`
50
+ is the name of a hash function such as
51
+ ``md5``, ``sha256``, etc.
52
+
53
+ todo: restore text about callables.
54
+
55
+ :raises ValueError: if the name is not known
56
+ :raises TypeError: if the name is not a callable or string
57
+
58
+ :returns:
59
+ a tuple of :samp:`({prf_func}, {digest_size})`, where:
60
+
61
+ * :samp:`{prf_func}` is a function implementing
62
+ the specified PRF, and has the signature
63
+ ``prf_func(secret, message) -> digest``.
64
+
65
+ * :samp:`{digest_size}` is an integer indicating
66
+ the number of bytes the function returns.
67
+
68
+ Usage example::
69
+
70
+ >>> from passlib.utils.pbkdf2 import get_prf
71
+ >>> hmac_sha256, dsize = get_prf("hmac-sha256")
72
+ >>> hmac_sha256
73
+ <function hmac_sha256 at 0x1e37c80>
74
+ >>> dsize
75
+ 32
76
+ >>> digest = hmac_sha256('password', 'message')
77
+
78
+ .. deprecated:: 1.7
79
+
80
+ This function is deprecated, and will be removed in Passlib 2.0.
81
+ This only related replacement is :func:`passlib.crypto.digest.compile_hmac`.
82
+ """
83
+ if name in _prf_cache:
84
+ return _prf_cache[name]
85
+ if isinstance(name, str):
86
+ if not name.startswith(_HMAC_PREFIXES):
87
+ raise ValueError(f"unknown prf algorithm: {name!r}")
88
+ digest = lookup_hash(name[5:]).name
89
+
90
+ def hmac(key, msg):
91
+ return compile_hmac(digest, key)(msg)
92
+
93
+ record = (hmac, hmac.digest_info.digest_size)
94
+ elif callable(name):
95
+ # assume it's a callable, use it directly
96
+ digest_size = len(name(b"x", b"y"))
97
+ record = (name, digest_size)
98
+ else:
99
+ raise ExpectedTypeError(name, "str or callable", "prf name")
100
+ _prf_cache[name] = record
101
+ return record
102
+
103
+
104
+ def pbkdf1(secret, salt, rounds, keylen=None, hash="sha1"):
105
+ """pkcs#5 password-based key derivation v1.5
106
+
107
+ :arg secret: passphrase to use to generate key
108
+ :arg salt: salt string to use when generating key
109
+ :param rounds: number of rounds to use to generate key
110
+ :arg keylen: number of bytes to generate (if ``None``, uses digest's native size)
111
+ :param hash:
112
+ hash function to use. must be name of a hash recognized by hashlib.
113
+
114
+ :returns:
115
+ raw bytes of generated key
116
+
117
+ .. note::
118
+
119
+ This algorithm has been deprecated, new code should use PBKDF2.
120
+ Among other limitations, ``keylen`` cannot be larger
121
+ than the digest size of the specified hash.
122
+
123
+ .. deprecated:: 1.7
124
+
125
+ This has been relocated to :func:`passlib.crypto.digest.pbkdf1`,
126
+ and this version will be removed in Passlib 2.0.
127
+ *Note the call signature has changed.*
128
+ """
129
+ return _pbkdf1(hash, secret, salt, rounds, keylen)
130
+
131
+
132
+ def pbkdf2(secret, salt, rounds, keylen=None, prf="hmac-sha1"):
133
+ """pkcs#5 password-based key derivation v2.0
134
+
135
+ :arg secret:
136
+ passphrase to use to generate key
137
+
138
+ :arg salt:
139
+ salt string to use when generating key
140
+
141
+ :param rounds:
142
+ number of rounds to use to generate key
143
+
144
+ :arg keylen:
145
+ number of bytes to generate.
146
+ if set to ``None``, will use digest size of selected prf.
147
+
148
+ :param prf:
149
+ psuedo-random family to use for key strengthening.
150
+ this must be a string starting with ``"hmac-"``, followed by the name of a known digest.
151
+ this defaults to ``"hmac-sha1"`` (the only prf explicitly listed in
152
+ the PBKDF2 specification)
153
+
154
+ .. rst-class:: warning
155
+
156
+ .. versionchanged 1.7:
157
+
158
+ This argument no longer supports arbitrary PRF callables --
159
+ These were rarely / never used, and created too many unwanted codepaths.
160
+
161
+ :returns:
162
+ raw bytes of generated key
163
+
164
+ .. deprecated:: 1.7
165
+
166
+ This has been deprecated in favor of :func:`passlib.crypto.digest.pbkdf2_hmac`,
167
+ and will be removed in Passlib 2.0. *Note the call signature has changed.*
168
+ """
169
+ if callable(prf) or (isinstance(prf, str) and not prf.startswith(_HMAC_PREFIXES)):
170
+ raise NotImplementedError("non-HMAC prfs are not supported as of Passlib 1.7")
171
+ digest = prf[5:]
172
+ return pbkdf2_hmac(digest, secret, salt, rounds, keylen)
@@ -0,0 +1,90 @@
1
+ Metadata-Version: 2.5
2
+ Name: passlib
3
+ Version: 1.9.5
4
+ Summary: Comprehensive password hashing framework supporting over 30 schemes
5
+ Project-URL: Homepage, https://github.com/notypecheck/passlib
6
+ Project-URL: Repository, https://github.com/notypecheck/passlib
7
+ Project-URL: Docs, https://notypecheck.github.io/passlib/
8
+ Project-URL: Issues, https://github.com/notypecheck/passlib/issues
9
+ Project-URL: Changelog, https://github.com/notypecheck/passlib/blob/main/CHANGELOG.md
10
+ Author-email: Eli Collins <elic@assurancetechnologies.com>
11
+ Maintainer-email: Noel <notypecheck@gmail.com>
12
+ License-Expression: BSD-3-Clause
13
+ License-File: LICENSE
14
+ Keywords: 2fa,apache,argon2,bcrypt,crypt,hash,htdigest,htpasswd,md5-crypt,passlib,password,pbkdf2,scrypt,secret,security,sha256-crypt,sha512-crypt,totp
15
+ Classifier: Development Status :: 5 - Production/Stable
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: Natural Language :: English
18
+ Classifier: Operating System :: OS Independent
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Programming Language :: Python :: 3.14
24
+ Classifier: Programming Language :: Python :: 3.15
25
+ Classifier: Programming Language :: Python :: Implementation :: CPython
26
+ Classifier: Topic :: Security :: Cryptography
27
+ Classifier: Topic :: Software Development :: Libraries
28
+ Requires-Python: >=3.11
29
+ Provides-Extra: argon2
30
+ Requires-Dist: argon2-cffi>=18.2.0; extra == 'argon2'
31
+ Provides-Extra: bcrypt
32
+ Requires-Dist: bcrypt>=3.1.0; extra == 'bcrypt'
33
+ Provides-Extra: totp
34
+ Requires-Dist: cryptography>=43.0.1; extra == 'totp'
35
+ Description-Content-Type: text/markdown
36
+
37
+ # Passlib
38
+
39
+ ![PyPI Version](https://img.shields.io/pypi/v/passlib?style=for-the-badge)
40
+ ![PyPI Python Version](https://img.shields.io/pypi/pyversions/passlib?style=for-the-badge)
41
+
42
+
43
+ This is the official repository of Passlib, published on PyPI as
44
+ [passlib](https://pypi.org/project/passlib/). It continues the original
45
+ project at https://foss.heptapod.net/python-libs/passlib (unmaintained since
46
+ its final release, 1.7.4, in 2020).
47
+
48
+ Passlib is a password hashing library for Python 3, which provides
49
+ cross-platform implementations of over 30 password hashing algorithms, as well
50
+ as a framework for managing existing password hashes. It's designed to be useful
51
+ for a wide range of tasks, from verifying a hash found in /etc/shadow, to
52
+ providing full-strength password hashing for multi-user application.
53
+
54
+ Versions 1.7.5 through 1.9.4 were published on PyPI as
55
+ [libpass](https://pypi.org/project/libpass/); releases from 1.9.5 onward
56
+ are published under `passlib` again.
57
+
58
+ - See the [documentation](https://notypecheck.github.io/passlib/)
59
+ for details, installation instructions, and examples.
60
+ - See the [changelog](https://github.com/notypecheck/passlib/blob/main/CHANGELOG.md)
61
+ for a description of what's new in Passlib.
62
+ - Visit [PyPI](https://pypi.org/project/passlib/) for the latest stable release.
63
+
64
+ ## Installation
65
+ ```shell
66
+ pip install passlib
67
+ ```
68
+
69
+ Available extras:
70
+ ```shell
71
+ pip install passlib[argon2]
72
+ pip install passlib[bcrypt]
73
+ pip install passlib[totp]
74
+ ```
75
+
76
+ ## Usage
77
+ A quick example of using passlib to integrate into a new application:
78
+ ```python
79
+ from passlib.context import CryptContext
80
+
81
+ context = CryptContext(schemes=["sha512_crypt"])
82
+
83
+ hash = context.hash("password")
84
+ # $6$rounds=656000$jFKvvPmUywlqjSs.$iNeK/OWVry7KThNyzR01xzqZzgk/VA75.sR4yXXblsPAoEugtdO3zn/O4VEG3Izp8l5.//lMGpuRCOqvKknHo1
85
+
86
+ # Verifying a password
87
+ is_valid = context.verify("password", hash)
88
+ # > True
89
+ ```
90
+ For more details and an extended set of examples, see the [full documentation](https://notypecheck.github.io/passlib/)
@@ -0,0 +1,69 @@
1
+ passlib/__init__.py,sha256=uozOnNjLKP51teiU7JmdhO_epele5jaqE3VrpAPjQn8,87
2
+ passlib/_logging.py,sha256=RG7bQzSi4RgySraZh6PkpuyEWGSrJCNP7eQD_v53aa4,54
3
+ passlib/_protocols.py,sha256=wVgQqkrv-zsb0ufHNlOsM6vrXVc2klBD1-scK2kKaeE,612
4
+ passlib/apache.py,sha256=FE0d5Um8GcDFnnqvsOJhODfNfaDlmhTLe7JnsSdaWoA,39757
5
+ passlib/apps.py,sha256=f9U37CQe0KDM5NLXitMXnGL4iEtHzTDyvdxtr0M4M9Q,5583
6
+ passlib/context.py,sha256=fRdLi4FssREfrtRAWEErRFzB_tKj2ls0n_Jt7vC0mzA,76866
7
+ passlib/exc.py,sha256=2FuhfaG6WFiwh_d2sYTZwyDtpg-RFyZHH4zkNeQbFco,13731
8
+ passlib/hash.py,sha256=XkCB6FBpjgskqTFV59pDVWX0VX19Ms5igC8P7WbtkYk,3795
9
+ passlib/hosts.py,sha256=uBW_8Ra44YCXFoNnGrTw-nkwKNjnsLfB7WfiuaK9HA0,2002
10
+ passlib/ifc.py,sha256=HT2enoRZXakrBwEuNjUCXrc2yi1jJMWkNmnDQKfpk_k,11807
11
+ passlib/pwd.py,sha256=fQLYcZK5hI2g7IJC-_XMeUbtw3oAQTbRI80tyZCSSTw,23862
12
+ passlib/registry.py,sha256=wmIbid51FDiy-JVVLTDyhvleeRfip0z-YxcLwlUl03w,18651
13
+ passlib/totp.py,sha256=-0V3O9APcvp8ZQb7SqzMcE2l5GGksdif3ICh35zG5EA,66929
14
+ passlib/_data/wordsets/bip39.txt,sha256=JM5Cwv1KlcG4a77pvOHhzyVb0AIuGbq2vVka_Wi379s,13117
15
+ passlib/_data/wordsets/eff_long.txt,sha256=bVV_BpOVj7XmULaLW-5YXrgs9NoyllUFx4npJHQ7xSI,62144
16
+ passlib/_data/wordsets/eff_prefixed.txt,sha256=eqV6TT7PZYFymZK62VdbrN6_fCg3ivKuxqUPEa7DJvU,10778
17
+ passlib/_data/wordsets/eff_short.txt,sha256=NuzKSeT6IMqEsXbDLy6cgvmPRGWFGQ51-YealcCCR78,7180
18
+ passlib/crypto/__init__.py,sha256=St6CGqhrfz3L5Da3aZvRK69le_FcLLE3gA2dEByOmC0,84
19
+ passlib/crypto/_md4.py,sha256=y_YTMZXNoEPWxPD5XHjMh9PqU6bINSTF7zIHibtdm2M,6268
20
+ passlib/crypto/des.py,sha256=L0Go6h2sEPFphcDf9IEKEe5KGx24yuhYIQQu0FJvuWo,69235
21
+ passlib/crypto/digest.py,sha256=QnprbLJNV0sO95oghVFP_KzLz_WHV4CVFnE0ekzYeAc,23854
22
+ passlib/crypto/_blowfish/__init__.py,sha256=PzuKNAKfVhVptCvAfZpuixLLPr_HZmri8dHEInItnJU,5554
23
+ passlib/crypto/_blowfish/_gen_files.py,sha256=a0P_-MoNE-dzyWSNPw4HiwFynL1PzzB8xSed6i-JdAs,6091
24
+ passlib/crypto/_blowfish/base.py,sha256=mbJCeIzDGkJgZvXyC4Q6eiZG89XTbuv3-xG_163ggtA,29681
25
+ passlib/crypto/_blowfish/unrolled.py,sha256=R70tO5vXgC3zihOX51q0cAS8hbEYwfPSV_onBvT9JKQ,48727
26
+ passlib/crypto/scrypt/__init__.py,sha256=3-WtJaR51y25tpW8jgKem-U0w5cKmSG3xTH4wjcXD8A,8826
27
+ passlib/crypto/scrypt/_builtin.py,sha256=5Fpx4BDxZpCgJWVqqBgQ_VAlz0hO35dNj8m3mBsZ7ak,7316
28
+ passlib/crypto/scrypt/_gen_files.py,sha256=PH3z5jH1OudxLcbR1IBg7ZvBN-IGm4D9OBZ-H-ipoNM,4227
29
+ passlib/crypto/scrypt/_salsa.py,sha256=v-5rz4ABmxc7-q_ehfgeNLi1keYFRCT396gwoJRcwRo,5555
30
+ passlib/ext/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
31
+ passlib/ext/django/__init__.py,sha256=RvooHmuUwjLXuSuUJr-9URnY1CRVCzU2xdh-jW-mrN0,228
32
+ passlib/ext/django/models.py,sha256=LMY0j0SJ_ZkI1syiB3krYVuQX2NM9yczChDtBKXCtX8,579
33
+ passlib/ext/django/utils.py,sha256=6kWVZYoW7--S7sP_UrhaxmyHEFA5ZsbPXqUiLb0H-Jg,42444
34
+ passlib/handlers/__init__.py,sha256=sIPjJgOGHpOIstAwDeHTfxKR8wLVqP4zSa4mvBhAZ_8,86
35
+ passlib/handlers/argon2.py,sha256=E1d9URmWrHpaz3hPU_ZVSXAbcY-S_3_Y0LkPA-0iw6U,34415
36
+ passlib/handlers/bcrypt.py,sha256=GsB9xa9P-gxNOBBGC1xf0-TX3cg3l8VWg4bi8Dn50Sk,40045
37
+ passlib/handlers/cisco.py,sha256=qXrQf7qDE5syqenWQmcStp29k_ZEZ_5Wmu61owB3zIc,13971
38
+ passlib/handlers/des_crypt.py,sha256=5XLN27VVwyluntKxSKZKxhFrySnq7H4Fwt0dTmIOu7Y,16508
39
+ passlib/handlers/digests.py,sha256=WWT-uZCNJ8X7qhYKrl5vrlxaU7iInSaSDd-jZJTYjm0,4870
40
+ passlib/handlers/django.py,sha256=5MGJVNPxOY0r0iMEmwtcVHixg5goO536m9xLPU-EMDg,18459
41
+ passlib/handlers/fshp.py,sha256=EyxL_E3hDicYw53C24sdl8Va-pg27aiWraa6sEF_mww,6052
42
+ passlib/handlers/ldap_digests.py,sha256=dXSen8bBlT2ozUsAOTAd82YBdRpMkx7b6gfV8JXpWoM,12176
43
+ passlib/handlers/md5_crypt.py,sha256=Q8jcvX6eGuUGegAnXC_y_DkyC5XEgru6haix_61rl1o,9770
44
+ passlib/handlers/misc.py,sha256=ryu5P1q-lV8u_z8l2Wo96OBviBRXx5wqQyo0rilT5RA,7128
45
+ passlib/handlers/mssql.py,sha256=29Fd_F3FsHFdd1THmVvW4mM5jTiwDIjQCn6GbPgTunI,6849
46
+ passlib/handlers/mysql.py,sha256=gjLPWlqvZ9Z8JUh-BM-5nLqV1GI0bHICM4LU7pgNOzE,2853
47
+ passlib/handlers/oracle.py,sha256=rQ6YU267KLrTxh6D2Y20Wrq7vQIBNVyi4y6wR1xiRv8,4790
48
+ passlib/handlers/pbkdf2.py,sha256=qajkwBWV0UFLvVdQOn-FFJtjwZrsBK8WH5jq3TlX44g,16230
49
+ passlib/handlers/phpass.py,sha256=BV1Y3f4oL1Fnv9BVF3MN8yoRtqqlSCGjMQEJ_ZhCSYI,3419
50
+ passlib/handlers/postgres.py,sha256=NMPk4cFbAZlNoKvZscBJLlzX2x8Ve0Y_Kr4fpZ_c60E,1086
51
+ passlib/handlers/roundup.py,sha256=ts8478W5BsfEULwv5Y1B7ALglL2HdGjeQWOY3x-JeUc,516
52
+ passlib/handlers/scram.py,sha256=2zzzEzMb9KlBAYXYjxScIl-lhDI2cx2xjCnvR59vYBI,19993
53
+ passlib/handlers/scrypt.py,sha256=-Vq_AT-453_lLsxRT_OBYRX7Jhkt7r_fvSK5v0o0fww,11925
54
+ passlib/handlers/sha1_crypt.py,sha256=RtICTrmN0fdSB1HuqJW7HFkZETAR_Vq45al6Rx0Pct4,3698
55
+ passlib/handlers/sha2_crypt.py,sha256=6p79ZewMJTo35bkJvMIa6dTIJGQoizbGA0AjmIyDqKc,17447
56
+ passlib/handlers/sun_md5_crypt.py,sha256=zWvdQAbcZj3tzfy_4b_ycnoCW6pOayOG-pezL9RFSk8,11944
57
+ passlib/handlers/windows.py,sha256=JFZKMIRyryraxIFDgJgz10rF1qCM4rsIsoMhZChjjKs,9891
58
+ passlib/utils/__init__.py,sha256=oTV_eiryMHNuim1ZS344zODHWxR4oVGr27inAa4UtB8,27376
59
+ passlib/utils/binary.py,sha256=zho1MQco86N74-z5y6re1NUw_De7IYkHmlsc1vntHps,28116
60
+ passlib/utils/decor.py,sha256=NdBygdkeo6bwQ2NmFLn1Zb9vK2B0ebrI_KcxUb1QfgE,6259
61
+ passlib/utils/des.py,sha256=whyGqMMEy7gw7hxbZAKl9rKenHu-srQcQKmMoZWdzkQ,949
62
+ passlib/utils/handlers.py,sha256=xn8tJqUNMw41NUMXffp_7u3TdQHD7OQ87SIwTTj73u4,92383
63
+ passlib/utils/md4.py,sha256=kMvQrgXT3D3LkVUktuWYHpPP9OVbcDcAaaQ8-0z5qDE,679
64
+ passlib/utils/pbkdf2.py,sha256=PxWwqu7mrHEGL46jaaN7nJ7bN9xxzFA9oMBMJGzAOTc,5260
65
+ passlib/utils/compat/__init__.py,sha256=cptOSusg6yPInOS-i8DMSo6kBI0IV8FeUhrF-o_cKs0,3910
66
+ passlib-1.9.5.dist-info/METADATA,sha256=z3wHx_jrkmgX1oAEzybL7-6Mux5V47a7FZNR50VXO-g,3730
67
+ passlib-1.9.5.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
68
+ passlib-1.9.5.dist-info/licenses/LICENSE,sha256=qVuo8a-I_41fDQwzUZ9DC3-diZK2nUvDaawEI6egWok,4954
69
+ passlib-1.9.5.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.33.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,116 @@
1
+ .. -*- restructuredtext -*-
2
+
3
+ =====================
4
+ Copyrights & Licenses
5
+ =====================
6
+
7
+ Credits
8
+ =======
9
+ Passlib is primarily developed by Eli Collins.
10
+
11
+ Special thanks to Darin Gordon for testing and
12
+ feedback on the :mod:`passlib.totp` module.
13
+
14
+ License for Passlib
15
+ ===================
16
+ Passlib is (c) `Assurance Technologies <http://www.assurancetechnologies.com>`_,
17
+ and is released under the `BSD license <http://www.opensource.org/licenses/bsd-license.php>`_::
18
+
19
+ Passlib
20
+ Copyright (c) 2008-2020 Assurance Technologies, LLC.
21
+ All rights reserved.
22
+
23
+ Redistribution and use in source and binary forms, with or without
24
+ modification, are permitted provided that the following conditions are
25
+ met:
26
+
27
+ * Redistributions of source code must retain the above copyright
28
+ notice, this list of conditions and the following disclaimer.
29
+
30
+ * Redistributions in binary form must reproduce the above copyright
31
+ notice, this list of conditions and the following disclaimer in the
32
+ documentation and/or other materials provided with the distribution.
33
+
34
+ * Neither the name of Assurance Technologies, nor the names of the
35
+ contributors may be used to endorse or promote products derived
36
+ from this software without specific prior written permission.
37
+
38
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
39
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
40
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
41
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
42
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
43
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
44
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
45
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
46
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
47
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
48
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
49
+
50
+ Licenses for incorporated software
51
+ ==================================
52
+ Passlib contains some code derived from the following sources:
53
+
54
+ MD5-Crypt
55
+ ---------
56
+ The source file ``passlib/handlers/md5_crypt.py`` contains code derived from the original
57
+ `FreeBSD md5-crypt implementation <http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/lib/libcrypt/crypt.c?rev=1.2>`_,
58
+ which is available under the following license::
59
+
60
+ "THE BEER-WARE LICENSE" (Revision 42):
61
+ <phk@login.dknet.dk> wrote this file. As long as you retain this notice you
62
+ can do whatever you want with this stuff. If we meet some day, and you think
63
+ this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
64
+
65
+ converted to python May 2008
66
+ by Eli Collins
67
+
68
+ DES
69
+ ---
70
+ The source file ``passlib/crypto/des.py`` contains code derived from
71
+ `UnixCrypt.java <http://www.dynamic.net.au/christos/crypt/UnixCrypt2.txt>`_,
72
+ a pure-java implementation of the historic unix-crypt password hash algorithm.
73
+ It is available under the following license::
74
+
75
+ UnixCrypt.java 0.9 96/11/25
76
+ Copyright (c) 1996 Aki Yoshida. All rights reserved.
77
+ Permission to use, copy, modify and distribute this software
78
+ for non-commercial or commercial purposes and without fee is
79
+ hereby granted provided that this copyright notice appears in
80
+ all copies.
81
+
82
+ modified April 2001
83
+ by Iris Van den Broeke, Daniel Deville
84
+
85
+ modified Aug 2005
86
+ by Greg Wilkins (gregw)
87
+
88
+ converted to python Jun 2009
89
+ by Eli Collins
90
+
91
+ jBCrypt
92
+ -------
93
+ The source file ``passlib/crypto/_blowfish/base.py`` contains code derived
94
+ from `jBcrypt 0.2 <http://www.mindrot.org/projects/jBCrypt/>`_, a Java
95
+ implementation of the BCrypt password hash algorithm. It is available under
96
+ a BSD/ISC license::
97
+
98
+ Copyright (c) 2006 Damien Miller <djm@mindrot.org>
99
+
100
+ Permission to use, copy, modify, and distribute this software for any
101
+ purpose with or without fee is hereby granted, provided that the above
102
+ copyright notice and this permission notice appear in all copies.
103
+
104
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
105
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
106
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
107
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
108
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
109
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS ACTION, ARISING OUT OF
110
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
111
+
112
+ Wordsets
113
+ --------
114
+ The EFF wordsets in ``passlib/_data/wordsets`` are (c) 2016 the Electronic Freedom Foundation.
115
+ They were downloaded from `<https://www.eff.org/deeplinks/2016/07/new-wordlists-random-passphrases>`_,
116
+ and are released under the `Creative Commons License <https://www.eff.org/copyright>`_.