libpass 1.7.5.post0__tar.gz

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 (101) hide show
  1. libpass-1.7.5.post0/LICENSE +116 -0
  2. libpass-1.7.5.post0/PKG-INFO +81 -0
  3. libpass-1.7.5.post0/README.md +42 -0
  4. libpass-1.7.5.post0/passlib/__init__.py +3 -0
  5. libpass-1.7.5.post0/passlib/_data/wordsets/bip39.txt +2049 -0
  6. libpass-1.7.5.post0/passlib/_data/wordsets/eff_long.txt +7776 -0
  7. libpass-1.7.5.post0/passlib/_data/wordsets/eff_prefixed.txt +1296 -0
  8. libpass-1.7.5.post0/passlib/_data/wordsets/eff_short.txt +1296 -0
  9. libpass-1.7.5.post0/passlib/_setup/__init__.py +1 -0
  10. libpass-1.7.5.post0/passlib/_setup/stamp.py +159 -0
  11. libpass-1.7.5.post0/passlib/apache.py +1185 -0
  12. libpass-1.7.5.post0/passlib/apps.py +260 -0
  13. libpass-1.7.5.post0/passlib/context.py +2066 -0
  14. libpass-1.7.5.post0/passlib/crypto/__init__.py +1 -0
  15. libpass-1.7.5.post0/passlib/crypto/_blowfish/__init__.py +171 -0
  16. libpass-1.7.5.post0/passlib/crypto/_blowfish/_gen_files.py +256 -0
  17. libpass-1.7.5.post0/passlib/crypto/_blowfish/base.py +1239 -0
  18. libpass-1.7.5.post0/passlib/crypto/_blowfish/unrolled.py +1691 -0
  19. libpass-1.7.5.post0/passlib/crypto/_md4.py +249 -0
  20. libpass-1.7.5.post0/passlib/crypto/des.py +2283 -0
  21. libpass-1.7.5.post0/passlib/crypto/digest.py +1111 -0
  22. libpass-1.7.5.post0/passlib/crypto/scrypt/__init__.py +299 -0
  23. libpass-1.7.5.post0/passlib/crypto/scrypt/_builtin.py +254 -0
  24. libpass-1.7.5.post0/passlib/crypto/scrypt/_gen_files.py +161 -0
  25. libpass-1.7.5.post0/passlib/crypto/scrypt/_salsa.py +188 -0
  26. libpass-1.7.5.post0/passlib/exc.py +432 -0
  27. libpass-1.7.5.post0/passlib/ext/__init__.py +1 -0
  28. libpass-1.7.5.post0/passlib/ext/django/__init__.py +6 -0
  29. libpass-1.7.5.post0/passlib/ext/django/models.py +38 -0
  30. libpass-1.7.5.post0/passlib/ext/django/utils.py +1326 -0
  31. libpass-1.7.5.post0/passlib/handlers/__init__.py +1 -0
  32. libpass-1.7.5.post0/passlib/handlers/argon2.py +1119 -0
  33. libpass-1.7.5.post0/passlib/handlers/bcrypt.py +1217 -0
  34. libpass-1.7.5.post0/passlib/handlers/cisco.py +450 -0
  35. libpass-1.7.5.post0/passlib/handlers/des_crypt.py +642 -0
  36. libpass-1.7.5.post0/passlib/handlers/digests.py +184 -0
  37. libpass-1.7.5.post0/passlib/handlers/django.py +545 -0
  38. libpass-1.7.5.post0/passlib/handlers/fshp.py +223 -0
  39. libpass-1.7.5.post0/passlib/handlers/ldap_digests.py +379 -0
  40. libpass-1.7.5.post0/passlib/handlers/md5_crypt.py +375 -0
  41. libpass-1.7.5.post0/passlib/handlers/misc.py +224 -0
  42. libpass-1.7.5.post0/passlib/handlers/mssql.py +258 -0
  43. libpass-1.7.5.post0/passlib/handlers/mysql.py +136 -0
  44. libpass-1.7.5.post0/passlib/handlers/oracle.py +177 -0
  45. libpass-1.7.5.post0/passlib/handlers/pbkdf2.py +521 -0
  46. libpass-1.7.5.post0/passlib/handlers/phpass.py +142 -0
  47. libpass-1.7.5.post0/passlib/handlers/postgres.py +61 -0
  48. libpass-1.7.5.post0/passlib/handlers/roundup.py +33 -0
  49. libpass-1.7.5.post0/passlib/handlers/scram.py +589 -0
  50. libpass-1.7.5.post0/passlib/handlers/scrypt.py +413 -0
  51. libpass-1.7.5.post0/passlib/handlers/sha1_crypt.py +173 -0
  52. libpass-1.7.5.post0/passlib/handlers/sha2_crypt.py +657 -0
  53. libpass-1.7.5.post0/passlib/handlers/sun_md5_crypt.py +387 -0
  54. libpass-1.7.5.post0/passlib/handlers/windows.py +349 -0
  55. libpass-1.7.5.post0/passlib/hash.py +111 -0
  56. libpass-1.7.5.post0/passlib/hosts.py +112 -0
  57. libpass-1.7.5.post0/passlib/ifc.py +354 -0
  58. libpass-1.7.5.post0/passlib/pwd.py +813 -0
  59. libpass-1.7.5.post0/passlib/registry.py +583 -0
  60. libpass-1.7.5.post0/passlib/totp.py +1968 -0
  61. libpass-1.7.5.post0/passlib/utils/__init__.py +1221 -0
  62. libpass-1.7.5.post0/passlib/utils/binary.py +897 -0
  63. libpass-1.7.5.post0/passlib/utils/compat/__init__.py +200 -0
  64. libpass-1.7.5.post0/passlib/utils/decor.py +234 -0
  65. libpass-1.7.5.post0/passlib/utils/des.py +35 -0
  66. libpass-1.7.5.post0/passlib/utils/handlers.py +2857 -0
  67. libpass-1.7.5.post0/passlib/utils/md4.py +34 -0
  68. libpass-1.7.5.post0/passlib/utils/pbkdf2.py +188 -0
  69. libpass-1.7.5.post0/pyproject.toml +123 -0
  70. libpass-1.7.5.post0/tests/__init__.py +1 -0
  71. libpass-1.7.5.post0/tests/__main__.py +6 -0
  72. libpass-1.7.5.post0/tests/_test_bad_register.py +19 -0
  73. libpass-1.7.5.post0/tests/sample1.cfg +9 -0
  74. libpass-1.7.5.post0/tests/sample1b.cfg +9 -0
  75. libpass-1.7.5.post0/tests/sample1c.cfg +0 -0
  76. libpass-1.7.5.post0/tests/sample_config_1s.cfg +8 -0
  77. libpass-1.7.5.post0/tests/test_apache.py +779 -0
  78. libpass-1.7.5.post0/tests/test_apps.py +155 -0
  79. libpass-1.7.5.post0/tests/test_context.py +1960 -0
  80. libpass-1.7.5.post0/tests/test_crypto_builtin_md4.py +161 -0
  81. libpass-1.7.5.post0/tests/test_crypto_des.py +203 -0
  82. libpass-1.7.5.post0/tests/test_crypto_digest.py +692 -0
  83. libpass-1.7.5.post0/tests/test_crypto_scrypt.py +721 -0
  84. libpass-1.7.5.post0/tests/test_ext_django.py +1146 -0
  85. libpass-1.7.5.post0/tests/test_ext_django_source.py +277 -0
  86. libpass-1.7.5.post0/tests/test_handlers.py +1936 -0
  87. libpass-1.7.5.post0/tests/test_handlers_argon2.py +749 -0
  88. libpass-1.7.5.post0/tests/test_handlers_bcrypt.py +692 -0
  89. libpass-1.7.5.post0/tests/test_handlers_cisco.py +463 -0
  90. libpass-1.7.5.post0/tests/test_handlers_django.py +452 -0
  91. libpass-1.7.5.post0/tests/test_handlers_pbkdf2.py +502 -0
  92. libpass-1.7.5.post0/tests/test_handlers_scrypt.py +114 -0
  93. libpass-1.7.5.post0/tests/test_hosts.py +104 -0
  94. libpass-1.7.5.post0/tests/test_pwd.py +198 -0
  95. libpass-1.7.5.post0/tests/test_registry.py +285 -0
  96. libpass-1.7.5.post0/tests/test_totp.py +1766 -0
  97. libpass-1.7.5.post0/tests/test_utils.py +1201 -0
  98. libpass-1.7.5.post0/tests/test_utils_handlers.py +867 -0
  99. libpass-1.7.5.post0/tests/test_utils_md4.py +34 -0
  100. libpass-1.7.5.post0/tests/test_utils_pbkdf2.py +332 -0
  101. libpass-1.7.5.post0/tests/utils.py +3903 -0
@@ -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>`_.
@@ -0,0 +1,81 @@
1
+ Metadata-Version: 2.1
2
+ Name: libpass
3
+ Version: 1.7.5.post0
4
+ Summary: Fork of passlib, a comprehensive password hashing framework supporting over 30 schemes
5
+ Keywords: password secret hash security
6
+ crypt md5-crypt
7
+ sha256-crypt sha512-crypt pbkdf2 argon2 scrypt bcrypt
8
+ apache htpasswd htdigest
9
+ totp 2fa
10
+ Author-Email: Doctor <thirvondukr@gmail.com>, Eli Collins <elic@assurancetechnologies.com>
11
+ License: BSD
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: BSD License
15
+ Classifier: Natural Language :: English
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.9
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: Implementation :: CPython
23
+ Classifier: Topic :: Security :: Cryptography
24
+ Classifier: Topic :: Software Development :: Libraries
25
+ Project-URL: Repository, https://github.com/ThirVondukr/passlib
26
+ Project-URL: Docs, https://passlib.readthedocs.io
27
+ Requires-Python: >=3.9
28
+ Provides-Extra: argon2
29
+ Provides-Extra: bcrypt
30
+ Provides-Extra: totp
31
+ Provides-Extra: build-docs
32
+ Requires-Dist: argon2-cffi>=18.2.0; extra == "argon2"
33
+ Requires-Dist: bcrypt>=3.1.0; extra == "bcrypt"
34
+ Requires-Dist: cryptography>=43.0.1; extra == "totp"
35
+ Requires-Dist: cloud-sptheme>=1.10.1; extra == "build-docs"
36
+ Requires-Dist: sphinx>=1.6; extra == "build-docs"
37
+ Requires-Dist: sphinxcontrib-fulltoc>=1.2.0; extra == "build-docs"
38
+ Description-Content-Type: text/markdown
39
+
40
+ # Passlib
41
+
42
+ This is a fork of https://foss.heptapod.net/python-libs/passlib
43
+
44
+ Passlib is a password hashing library for Python 3, which provides
45
+ cross-platform implementations of over 30 password hashing algorithms, as well
46
+ as a framework for managing existing password hashes. It's designed to be useful
47
+ for a wide range of tasks, from verifying a hash found in /etc/shadow, to
48
+ providing full-strength password hashing for multi-user application.
49
+
50
+ - See the [documentation](<https://passlib.readthedocs.io>)
51
+ for details, installation instructions, and examples.
52
+
53
+ - See the `changelog <https://passlib.readthedocs.io/en/stable/history>`_
54
+ for a description of what's new in Passlib.
55
+
56
+ - Visit [PyPI](https://passlib.readthedocs.io/en/stable/history) for the latest stable release.
57
+
58
+
59
+
60
+ ## Installation
61
+ ```shell
62
+ pip install libpass
63
+ ```
64
+
65
+ ## Usage
66
+ A quick example of using passlib to integrate into a new application:
67
+ ```python
68
+ from passlib.context import CryptContext
69
+
70
+ context = CryptContext(
71
+ schemes=["sha512_crypt"]
72
+ )
73
+
74
+ hash = context.hash("password")
75
+ # $6$rounds=656000$jFKvvPmUywlqjSs.$iNeK/OWVry7KThNyzR01xzqZzgk/VA75.sR4yXXblsPAoEugtdO3zn/O4VEG3Izp8l5.//lMGpuRCOqvKknHo1
76
+
77
+ # Verifying a password
78
+ is_valid = context.verify("password", hash) # True
79
+
80
+ ```
81
+ For more details and an extended set of examples, see the full documentation
@@ -0,0 +1,42 @@
1
+ # Passlib
2
+
3
+ This is a fork of https://foss.heptapod.net/python-libs/passlib
4
+
5
+ Passlib is a password hashing library for Python 3, which provides
6
+ cross-platform implementations of over 30 password hashing algorithms, as well
7
+ as a framework for managing existing password hashes. It's designed to be useful
8
+ for a wide range of tasks, from verifying a hash found in /etc/shadow, to
9
+ providing full-strength password hashing for multi-user application.
10
+
11
+ - See the [documentation](<https://passlib.readthedocs.io>)
12
+ for details, installation instructions, and examples.
13
+
14
+ - See the `changelog <https://passlib.readthedocs.io/en/stable/history>`_
15
+ for a description of what's new in Passlib.
16
+
17
+ - Visit [PyPI](https://passlib.readthedocs.io/en/stable/history) for the latest stable release.
18
+
19
+
20
+
21
+ ## Installation
22
+ ```shell
23
+ pip install libpass
24
+ ```
25
+
26
+ ## Usage
27
+ A quick example of using passlib to integrate into a new application:
28
+ ```python
29
+ from passlib.context import CryptContext
30
+
31
+ context = CryptContext(
32
+ schemes=["sha512_crypt"]
33
+ )
34
+
35
+ hash = context.hash("password")
36
+ # $6$rounds=656000$jFKvvPmUywlqjSs.$iNeK/OWVry7KThNyzR01xzqZzgk/VA75.sR4yXXblsPAoEugtdO3zn/O4VEG3Izp8l5.//lMGpuRCOqvKknHo1
37
+
38
+ # Verifying a password
39
+ is_valid = context.verify("password", hash) # True
40
+
41
+ ```
42
+ For more details and an extended set of examples, see the full documentation
@@ -0,0 +1,3 @@
1
+ """passlib - suite of password hashing & generation routines"""
2
+
3
+ __version__ = "1.7.5.post0"