libpass 1.8.0__tar.gz → 1.8.2__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.
- libpass-1.8.2/.git-blame-ignore-revs +2 -0
- libpass-1.8.2/.github/workflows/lint.yaml +32 -0
- libpass-1.8.2/.github/workflows/publish.yml +31 -0
- libpass-1.8.2/.github/workflows/test.yaml +29 -0
- libpass-1.8.2/.gitignore +10 -0
- libpass-1.8.2/CHANGELOG.md +84 -0
- {libpass-1.8.0 → libpass-1.8.2}/PKG-INFO +15 -13
- libpass-1.8.2/Taskfile.yml +67 -0
- libpass-1.8.2/docs/_fragments/asa_verify_callout.rst +15 -0
- libpass-1.8.2/docs/_fragments/insecure_hash_warning.rst +9 -0
- libpass-1.8.2/docs/_fragments/trivial_hash_warning.rst +8 -0
- libpass-1.8.2/docs/_static/bb-logo.png +0 -0
- libpass-1.8.2/docs/_static/bb-logo.svg +929 -0
- libpass-1.8.2/docs/_static/logo-128.png +0 -0
- libpass-1.8.2/docs/_static/logo-64.png +0 -0
- libpass-1.8.2/docs/_static/logo.ico +0 -0
- libpass-1.8.2/docs/_static/logo.png +0 -0
- libpass-1.8.2/docs/_static/logo.svg +297 -0
- libpass-1.8.2/docs/_static/masthead.png +0 -0
- libpass-1.8.2/docs/_static/masthead.svg +413 -0
- libpass-1.8.2/docs/conf.py +318 -0
- libpass-1.8.2/docs/contents.rst +14 -0
- libpass-1.8.2/docs/copyright.rst +1 -0
- libpass-1.8.2/docs/dev-requirements.txt +1 -0
- libpass-1.8.2/docs/faq.rst +75 -0
- libpass-1.8.2/docs/history/1.5.rst +173 -0
- libpass-1.8.2/docs/history/1.6.rst +400 -0
- libpass-1.8.2/docs/history/1.7.rst +549 -0
- libpass-1.8.2/docs/history/1.8.rst +94 -0
- libpass-1.8.2/docs/history/ancient.rst +126 -0
- libpass-1.8.2/docs/history/index.rst +46 -0
- libpass-1.8.2/docs/history.rst +8 -0
- libpass-1.8.2/docs/index.rst +108 -0
- libpass-1.8.2/docs/install.rst +158 -0
- libpass-1.8.2/docs/lib/index.rst +55 -0
- libpass-1.8.2/docs/lib/passlib.apache.rst +86 -0
- libpass-1.8.2/docs/lib/passlib.apps.rst +255 -0
- libpass-1.8.2/docs/lib/passlib.context-tutorial.rst +8 -0
- libpass-1.8.2/docs/lib/passlib.context.rst +509 -0
- libpass-1.8.2/docs/lib/passlib.crypto.des.rst +26 -0
- libpass-1.8.2/docs/lib/passlib.crypto.digest.rst +48 -0
- libpass-1.8.2/docs/lib/passlib.crypto.rst +18 -0
- libpass-1.8.2/docs/lib/passlib.exc.rst +49 -0
- libpass-1.8.2/docs/lib/passlib.ext.django.rst +199 -0
- libpass-1.8.2/docs/lib/passlib.hash.apr_md5_crypt.rst +45 -0
- libpass-1.8.2/docs/lib/passlib.hash.argon2.rst +127 -0
- libpass-1.8.2/docs/lib/passlib.hash.atlassian_pbkdf2_sha1.rst +58 -0
- libpass-1.8.2/docs/lib/passlib.hash.bcrypt.rst +232 -0
- libpass-1.8.2/docs/lib/passlib.hash.bcrypt_sha256.rst +83 -0
- libpass-1.8.2/docs/lib/passlib.hash.bigcrypt.rst +149 -0
- libpass-1.8.2/docs/lib/passlib.hash.bsdi_crypt.rst +157 -0
- libpass-1.8.2/docs/lib/passlib.hash.cisco_asa.rst +20 -0
- libpass-1.8.2/docs/lib/passlib.hash.cisco_pix.rst +205 -0
- libpass-1.8.2/docs/lib/passlib.hash.cisco_type7.rst +129 -0
- libpass-1.8.2/docs/lib/passlib.hash.crypt16.rst +119 -0
- libpass-1.8.2/docs/lib/passlib.hash.cta_pbkdf2_sha1.rst +61 -0
- libpass-1.8.2/docs/lib/passlib.hash.des_crypt.rst +141 -0
- libpass-1.8.2/docs/lib/passlib.hash.django_std.rst +268 -0
- libpass-1.8.2/docs/lib/passlib.hash.dlitz_pbkdf2_sha1.rst +76 -0
- libpass-1.8.2/docs/lib/passlib.hash.fshp.rst +123 -0
- libpass-1.8.2/docs/lib/passlib.hash.grub_pbkdf2_sha512.rst +80 -0
- libpass-1.8.2/docs/lib/passlib.hash.hex_digests.rst +65 -0
- libpass-1.8.2/docs/lib/passlib.hash.ldap_crypt.rst +65 -0
- libpass-1.8.2/docs/lib/passlib.hash.ldap_other.rst +51 -0
- libpass-1.8.2/docs/lib/passlib.hash.ldap_pbkdf2_digest.rst +38 -0
- libpass-1.8.2/docs/lib/passlib.hash.ldap_std.rst +127 -0
- libpass-1.8.2/docs/lib/passlib.hash.lmhash.rst +162 -0
- libpass-1.8.2/docs/lib/passlib.hash.md5_crypt.rst +206 -0
- libpass-1.8.2/docs/lib/passlib.hash.msdcc.rst +95 -0
- libpass-1.8.2/docs/lib/passlib.hash.msdcc2.rst +106 -0
- libpass-1.8.2/docs/lib/passlib.hash.mssql2000.rst +94 -0
- libpass-1.8.2/docs/lib/passlib.hash.mssql2005.rst +83 -0
- libpass-1.8.2/docs/lib/passlib.hash.mysql323.rst +65 -0
- libpass-1.8.2/docs/lib/passlib.hash.mysql41.rst +46 -0
- libpass-1.8.2/docs/lib/passlib.hash.nthash.rst +77 -0
- libpass-1.8.2/docs/lib/passlib.hash.oracle10.rst +113 -0
- libpass-1.8.2/docs/lib/passlib.hash.oracle11.rst +78 -0
- libpass-1.8.2/docs/lib/passlib.hash.pbkdf2_digest.rst +110 -0
- libpass-1.8.2/docs/lib/passlib.hash.phpass.rst +76 -0
- libpass-1.8.2/docs/lib/passlib.hash.plaintext.rst +34 -0
- libpass-1.8.2/docs/lib/passlib.hash.postgres_md5.rst +69 -0
- libpass-1.8.2/docs/lib/passlib.hash.rst +323 -0
- libpass-1.8.2/docs/lib/passlib.hash.scram.rst +171 -0
- libpass-1.8.2/docs/lib/passlib.hash.scrypt.rst +128 -0
- libpass-1.8.2/docs/lib/passlib.hash.sha1_crypt.rst +117 -0
- libpass-1.8.2/docs/lib/passlib.hash.sha256_crypt.rst +141 -0
- libpass-1.8.2/docs/lib/passlib.hash.sha512_crypt.rst +46 -0
- libpass-1.8.2/docs/lib/passlib.hash.sun_md5_crypt.rst +195 -0
- libpass-1.8.2/docs/lib/passlib.hash.unix_disabled.rst +43 -0
- libpass-1.8.2/docs/lib/passlib.hosts.rst +135 -0
- libpass-1.8.2/docs/lib/passlib.ifc.rst +719 -0
- libpass-1.8.2/docs/lib/passlib.pwd.rst +52 -0
- libpass-1.8.2/docs/lib/passlib.registry.rst +71 -0
- libpass-1.8.2/docs/lib/passlib.totp.rst +189 -0
- libpass-1.8.2/docs/lib/passlib.utils.binary.rst +89 -0
- libpass-1.8.2/docs/lib/passlib.utils.compat.rst +61 -0
- libpass-1.8.2/docs/lib/passlib.utils.des.rst +20 -0
- libpass-1.8.2/docs/lib/passlib.utils.handlers.rst +211 -0
- libpass-1.8.2/docs/lib/passlib.utils.pbkdf2.rst +35 -0
- libpass-1.8.2/docs/lib/passlib.utils.rst +155 -0
- libpass-1.8.2/docs/modular_crypt_format.rst +234 -0
- libpass-1.8.2/docs/narr/context-tutorial.rst +550 -0
- libpass-1.8.2/docs/narr/hash-tutorial.rst +327 -0
- libpass-1.8.2/docs/narr/index.rst +30 -0
- libpass-1.8.2/docs/narr/overview.rst +92 -0
- libpass-1.8.2/docs/narr/quickstart.rst +297 -0
- libpass-1.8.2/docs/narr/totp-tutorial.rst +772 -0
- libpass-1.8.2/docs/new_app_quickstart.rst +8 -0
- libpass-1.8.2/docs/other.rst +14 -0
- libpass-1.8.2/docs/overview.rst +8 -0
- libpass-1.8.2/docs/password_hash_api.rst +8 -0
- libpass-1.8.2/docs/requirements.txt +2 -0
- libpass-1.8.2/libpass/__init__.py +0 -0
- libpass-1.8.2/libpass/_salt.py +14 -0
- libpass-1.8.2/libpass/_utils/__init__.py +0 -0
- libpass-1.8.2/libpass/_utils/base64.py +14 -0
- libpass-1.8.2/libpass/_utils/binary.py +139 -0
- libpass-1.8.2/libpass/_utils/bytes.py +11 -0
- libpass-1.8.2/libpass/_utils/const.py +2 -0
- libpass-1.8.2/libpass/_utils/deprecated.py +66 -0
- libpass-1.8.2/libpass/_utils/protocols.py +31 -0
- libpass-1.8.2/libpass/_utils/str.py +9 -0
- libpass-1.8.2/libpass/_utils/validation.py +4 -0
- libpass-1.8.2/libpass/context.py +52 -0
- libpass-1.8.2/libpass/errors.py +2 -0
- libpass-1.8.2/libpass/hashers/__init__.py +0 -0
- libpass-1.8.2/libpass/hashers/abc.py +17 -0
- libpass-1.8.2/libpass/hashers/argon2.py +48 -0
- libpass-1.8.2/libpass/hashers/bcrypt.py +137 -0
- libpass-1.8.2/libpass/hashers/django.py +42 -0
- libpass-1.8.2/libpass/hashers/pbkdf2.py +117 -0
- libpass-1.8.2/libpass/hashers/sha_crypt.py +358 -0
- libpass-1.8.2/libpass/inspect/__init__.py +0 -0
- libpass-1.8.2/libpass/inspect/bcrypt.py +36 -0
- libpass-1.8.2/libpass/inspect/django.py +20 -0
- libpass-1.8.2/libpass/inspect/pbkdf2.py +56 -0
- libpass-1.8.2/libpass/inspect/phc/__init__.py +3 -0
- libpass-1.8.2/libpass/inspect/phc/_phc.py +144 -0
- libpass-1.8.2/libpass/inspect/phc/defs.py +33 -0
- libpass-1.8.2/libpass/inspect/sha_crypt.py +59 -0
- libpass-1.8.2/libpass/py.typed +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/__init__.py +3 -3
- {libpass-1.8.0 → libpass-1.8.2}/passlib/context.py +0 -9
- {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/digest.py +7 -5
- {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/scrypt/__init__.py +1 -1
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/argon2.py +9 -8
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/bcrypt.py +11 -7
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/des_crypt.py +3 -3
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/django.py +10 -4
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/fshp.py +6 -1
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/ldap_digests.py +12 -6
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/pbkdf2.py +4 -4
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/phpass.py +1 -1
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/scram.py +1 -1
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/scrypt.py +1 -1
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/sha1_crypt.py +7 -2
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/sha2_crypt.py +9 -2
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/sun_md5_crypt.py +1 -1
- {libpass-1.8.0 → libpass-1.8.2}/passlib/hash.py +2 -2
- {libpass-1.8.0 → libpass-1.8.2}/passlib/ifc.py +3 -1
- {libpass-1.8.0 → libpass-1.8.2}/passlib/pwd.py +2 -2
- {libpass-1.8.0 → libpass-1.8.2}/passlib/totp.py +1 -1
- {libpass-1.8.0 → libpass-1.8.2}/passlib/utils/__init__.py +6 -4
- {libpass-1.8.0 → libpass-1.8.2}/passlib/utils/binary.py +2 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/utils/handlers.py +21 -14
- {libpass-1.8.0 → libpass-1.8.2}/passlib/utils/pbkdf2.py +2 -2
- {libpass-1.8.0 → libpass-1.8.2}/pyproject.toml +59 -61
- libpass-1.8.2/tests/libpass/__init__.py +0 -0
- libpass-1.8.2/tests/libpass/hashers/__init__.py +0 -0
- libpass-1.8.2/tests/libpass/hashers/test_argon2.py +213 -0
- libpass-1.8.2/tests/libpass/hashers/test_bcrypt.py +165 -0
- libpass-1.8.2/tests/libpass/hashers/test_bcrypt_sha256.py +115 -0
- libpass-1.8.2/tests/libpass/hashers/test_django.py +111 -0
- libpass-1.8.2/tests/libpass/hashers/test_pbkdf2.py +139 -0
- libpass-1.8.2/tests/libpass/hashers/test_sha_crypt.py +309 -0
- libpass-1.8.2/tests/libpass/inspect/__init__.py +0 -0
- libpass-1.8.2/tests/libpass/inspect/test_inspect.py +77 -0
- libpass-1.8.2/tests/libpass/test_arch.py +10 -0
- libpass-1.8.2/tests/libpass/test_context.py +73 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/sample1b.cfg +9 -9
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_crypto_scrypt.py +3 -1
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_handlers_argon2.py +2 -2
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_handlers_bcrypt.py +2 -2
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_utils.py +10 -4
- {libpass-1.8.0 → libpass-1.8.2}/tests/utils.py +16 -13
- libpass-1.8.2/tox.ini +203 -0
- libpass-1.8.2/uv.lock +1230 -0
- libpass-1.8.0/passlib/_setup/__init__.py +0 -1
- libpass-1.8.0/passlib/_setup/stamp.py +0 -145
- {libpass-1.8.0 → libpass-1.8.2}/LICENSE +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/README.md +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/_data/wordsets/bip39.txt +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/_data/wordsets/eff_long.txt +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/_data/wordsets/eff_prefixed.txt +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/_data/wordsets/eff_short.txt +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/apache.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/apps.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/__init__.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/_blowfish/__init__.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/_blowfish/_gen_files.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/_blowfish/base.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/_blowfish/unrolled.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/_md4.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/des.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/scrypt/_builtin.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/scrypt/_gen_files.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/scrypt/_salsa.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/exc.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/ext/__init__.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/ext/django/__init__.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/ext/django/models.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/ext/django/utils.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/__init__.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/cisco.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/digests.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/md5_crypt.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/misc.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/mssql.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/mysql.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/oracle.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/postgres.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/roundup.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/windows.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/hosts.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/registry.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/utils/compat/__init__.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/utils/decor.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/utils/des.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/passlib/utils/md4.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/__init__.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/_test_bad_register.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/sample1.cfg +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/sample1c.cfg +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/sample_config_1s.cfg +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_apache.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_apache_pytest.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_apps.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_context.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_crypto_builtin_md4.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_crypto_des.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_crypto_digest.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_ext_django.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_handlers.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_handlers_cisco.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_handlers_django.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_handlers_pbkdf2.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_handlers_scrypt.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_hosts.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_pwd.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_registry.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_totp.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_utils_handlers.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_utils_md4.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/test_utils_pbkdf2.py +0 -0
- {libpass-1.8.0 → libpass-1.8.2}/tests/utils_.py +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: Lint
|
|
2
|
+
on: [push, pull_request]
|
|
3
|
+
jobs:
|
|
4
|
+
lint:
|
|
5
|
+
runs-on: ubuntu-latest
|
|
6
|
+
strategy:
|
|
7
|
+
fail-fast: false
|
|
8
|
+
matrix:
|
|
9
|
+
python-version:
|
|
10
|
+
- 3.12
|
|
11
|
+
job:
|
|
12
|
+
- deptry .
|
|
13
|
+
- mypy .
|
|
14
|
+
- ruff format --check .
|
|
15
|
+
- ruff check .
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
- name: Set up Python
|
|
20
|
+
uses: actions/setup-python@v5
|
|
21
|
+
with:
|
|
22
|
+
python-version: ${{ matrix.python-version }}
|
|
23
|
+
|
|
24
|
+
- name: Install uv
|
|
25
|
+
uses: astral-sh/setup-uv@v3
|
|
26
|
+
with:
|
|
27
|
+
enable-cache: true
|
|
28
|
+
|
|
29
|
+
- name: Install dependencies
|
|
30
|
+
run: uv sync --all-extras --all-groups
|
|
31
|
+
|
|
32
|
+
- run: uv run ${{ matrix.job }}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: Publish to PyPi
|
|
2
|
+
on:
|
|
3
|
+
release:
|
|
4
|
+
types:
|
|
5
|
+
- published
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
publish:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
environment: pypi
|
|
11
|
+
permissions:
|
|
12
|
+
id-token: write
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- name: Set up Python
|
|
16
|
+
uses: actions/setup-python@v5
|
|
17
|
+
with:
|
|
18
|
+
python-version: 3.12.7
|
|
19
|
+
- name: Install uv
|
|
20
|
+
uses: astral-sh/setup-uv@v3
|
|
21
|
+
with:
|
|
22
|
+
enable-cache: true
|
|
23
|
+
|
|
24
|
+
- name: Install dependencies
|
|
25
|
+
run: uv sync --all-extras --dev
|
|
26
|
+
|
|
27
|
+
- name: Build
|
|
28
|
+
run: uv build
|
|
29
|
+
|
|
30
|
+
- name: Publish
|
|
31
|
+
run: uv publish
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
on: [push, pull_request]
|
|
3
|
+
jobs:
|
|
4
|
+
test:
|
|
5
|
+
runs-on: ubuntu-latest
|
|
6
|
+
strategy:
|
|
7
|
+
fail-fast: false
|
|
8
|
+
matrix:
|
|
9
|
+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
|
10
|
+
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
14
|
+
uses: actions/setup-python@v5
|
|
15
|
+
with:
|
|
16
|
+
python-version: ${{ matrix.python-version }}
|
|
17
|
+
|
|
18
|
+
- name: Install uv
|
|
19
|
+
uses: astral-sh/setup-uv@v3
|
|
20
|
+
with:
|
|
21
|
+
enable-cache: true
|
|
22
|
+
|
|
23
|
+
- name: Install dependencies
|
|
24
|
+
run: uv sync --all-extras --all-groups
|
|
25
|
+
|
|
26
|
+
- run: |
|
|
27
|
+
uv run coverage run
|
|
28
|
+
uv run coverage report -m
|
|
29
|
+
uv run coverage xml
|
libpass-1.8.2/.gitignore
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
## 1.8.0 (2024-09-24)
|
|
2
|
+
|
|
3
|
+
### Fix
|
|
4
|
+
- add python 3.13 compatability
|
|
5
|
+
|
|
6
|
+
### Refactor
|
|
7
|
+
|
|
8
|
+
- enable ruff "FURB" rule
|
|
9
|
+
- enable ruff "PERF" rule
|
|
10
|
+
- enable ruff "RSE" rule
|
|
11
|
+
- enable ruff "FA" rule
|
|
12
|
+
- enable ruff "ISC" rule
|
|
13
|
+
- enable ruff "SIM" rule
|
|
14
|
+
- enable ruff "PIE" rule
|
|
15
|
+
- enable ruff "G" rule
|
|
16
|
+
- enable RET ruff rule
|
|
17
|
+
- enable pyupgrade(UP) checks in ruff
|
|
18
|
+
- **tests/**: use pytest to capture warnings
|
|
19
|
+
- **utils**: improve typing
|
|
20
|
+
- remove jython and pypy compatiblity helpers, remove setup.py
|
|
21
|
+
- remove dependency on built-in crypt, use legacycrypt instead
|
|
22
|
+
- replace consteq and str_consteq implementations with hmac.compare_digest
|
|
23
|
+
|
|
24
|
+
## 1.7.5.post0 (2024-09-11)
|
|
25
|
+
|
|
26
|
+
## 1.7.5 (2024-09-11)
|
|
27
|
+
|
|
28
|
+
### Fix
|
|
29
|
+
|
|
30
|
+
- **argon2.py**: use metadata.version to retrieve package version
|
|
31
|
+
- **bcrypt.py**: use importlib.metadata to get bcrypt version
|
|
32
|
+
- **bcrypt.py**: _calc_checksum call
|
|
33
|
+
|
|
34
|
+
### Refactor
|
|
35
|
+
|
|
36
|
+
- fix some of ruff errors
|
|
37
|
+
- remove deprecated pkg_resources usage
|
|
38
|
+
- add ".git-blame-ignore-revs"
|
|
39
|
+
- add ruff, mypy and deptry
|
|
40
|
+
- cleanup
|
|
41
|
+
- use pdm for dependency management
|
|
42
|
+
|
|
43
|
+
## 1.7.4 (2020-10-08)
|
|
44
|
+
|
|
45
|
+
## 1.7.3 (2020-10-06)
|
|
46
|
+
|
|
47
|
+
## 1.7.2 (2019-11-22)
|
|
48
|
+
|
|
49
|
+
## 1.7.1 (2017-01-30)
|
|
50
|
+
|
|
51
|
+
## 1.7.0 (2016-11-22)
|
|
52
|
+
|
|
53
|
+
### Fix
|
|
54
|
+
|
|
55
|
+
- passlib.tests: added "test_handlers_argon2" to get_handler_case()
|
|
56
|
+
- handler test suite: avoid even rounds for bsdi_crypt
|
|
57
|
+
|
|
58
|
+
## 1.6.5 (2015-08-04)
|
|
59
|
+
|
|
60
|
+
## 1.6.4 (2015-07-25)
|
|
61
|
+
|
|
62
|
+
## 1.6.2 (2013-12-26)
|
|
63
|
+
|
|
64
|
+
## 1.6.1 (2012-08-02)
|
|
65
|
+
|
|
66
|
+
## 1.6 (2012-05-17)
|
|
67
|
+
|
|
68
|
+
## 1.5.3 (2011-10-08)
|
|
69
|
+
|
|
70
|
+
## 1.5.2 (2011-09-19)
|
|
71
|
+
|
|
72
|
+
## 1.5.1 (2011-08-17)
|
|
73
|
+
|
|
74
|
+
## 1.5 (2011-07-11)
|
|
75
|
+
|
|
76
|
+
## 1.4 (2011-05-04)
|
|
77
|
+
|
|
78
|
+
## 1.3.1 (2011-03-28)
|
|
79
|
+
|
|
80
|
+
## 1.3.0 (2011-03-25)
|
|
81
|
+
|
|
82
|
+
## 1.2.0 (2011-01-17)
|
|
83
|
+
|
|
84
|
+
## 1.1.0 (2011-01-07)
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: libpass
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.2
|
|
4
4
|
Summary: Fork of passlib, a comprehensive password hashing framework supporting over 30 schemes
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
Project-URL: Homepage, https://github.com/ThirVondukr/passlib
|
|
6
|
+
Project-URL: Repository, https://github.com/ThirVondukr/passlib
|
|
7
|
+
Project-URL: Docs, https://passlib.readthedocs.io
|
|
8
|
+
Project-URL: Issues, https://github.com/ThirVondukr/passlib/issues
|
|
9
|
+
Project-URL: Changelog, https://github.com/ThirVondukr/passlib/blob/main/CHANGELOG.md
|
|
10
|
+
Author-email: Eli Collins <elic@assurancetechnologies.com>
|
|
11
|
+
Maintainer-email: Doctor <thirvondukr@gmail.com>
|
|
8
12
|
License: BSD
|
|
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
|
|
9
15
|
Classifier: Development Status :: 3 - Alpha
|
|
10
16
|
Classifier: Intended Audience :: Developers
|
|
11
17
|
Classifier: License :: OSI Approved :: BSD License
|
|
@@ -20,19 +26,15 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
20
26
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
21
27
|
Classifier: Topic :: Security :: Cryptography
|
|
22
28
|
Classifier: Topic :: Software Development :: Libraries
|
|
23
|
-
Project-URL: Homepage, https://github.com/ThirVondukr/passlib
|
|
24
|
-
Project-URL: Repository, https://github.com/ThirVondukr/passlib
|
|
25
|
-
Project-URL: Docs, https://passlib.readthedocs.io
|
|
26
|
-
Project-URL: Issues, https://github.com/ThirVondukr/passlib/issues
|
|
27
|
-
Project-URL: Changelog, https://github.com/ThirVondukr/passlib/blob/main/CHANGELOG.md
|
|
28
29
|
Requires-Python: >=3.9
|
|
29
30
|
Requires-Dist: legacycrypt>=0.3
|
|
31
|
+
Requires-Dist: typing-extensions>=4.6.0
|
|
30
32
|
Provides-Extra: argon2
|
|
31
|
-
Requires-Dist: argon2-cffi>=18.2.0; extra ==
|
|
33
|
+
Requires-Dist: argon2-cffi>=18.2.0; extra == 'argon2'
|
|
32
34
|
Provides-Extra: bcrypt
|
|
33
|
-
Requires-Dist: bcrypt>=3.1.0; extra ==
|
|
35
|
+
Requires-Dist: bcrypt>=3.1.0; extra == 'bcrypt'
|
|
34
36
|
Provides-Extra: totp
|
|
35
|
-
Requires-Dist: cryptography>=43.0.1; extra ==
|
|
37
|
+
Requires-Dist: cryptography>=43.0.1; extra == 'totp'
|
|
36
38
|
Description-Content-Type: text/markdown
|
|
37
39
|
|
|
38
40
|
# Passlib
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
version: "3"
|
|
2
|
+
|
|
3
|
+
vars:
|
|
4
|
+
RUNNER:
|
|
5
|
+
sh: 'echo {{ .RUNNER | default "uv run " }}'
|
|
6
|
+
SOURCES: .
|
|
7
|
+
SOURCES_ROOT: .
|
|
8
|
+
|
|
9
|
+
tasks:
|
|
10
|
+
default:
|
|
11
|
+
cmd:
|
|
12
|
+
task: all
|
|
13
|
+
|
|
14
|
+
lint:
|
|
15
|
+
desc: Lint python source files
|
|
16
|
+
cmds:
|
|
17
|
+
- "{{.RUNNER}} ruff check {{.SOURCES}}"
|
|
18
|
+
- "{{.RUNNER}} ruff format --check --diff {{.SOURCES}}"
|
|
19
|
+
|
|
20
|
+
format:
|
|
21
|
+
desc: Format python source files
|
|
22
|
+
aliases: ["fmt"]
|
|
23
|
+
cmds:
|
|
24
|
+
- "{{.RUNNER}} ruff format {{ .SOURCES }}"
|
|
25
|
+
- "{{.RUNNER}} ruff check --fix {{.SOURCES}}"
|
|
26
|
+
|
|
27
|
+
deptry:
|
|
28
|
+
desc: Check used dependencies with deptry
|
|
29
|
+
cmd: "{{.RUNNER}} deptry {{.SOURCES_ROOT}}"
|
|
30
|
+
|
|
31
|
+
typecheck:
|
|
32
|
+
desc: Perform type-checking
|
|
33
|
+
cmd: "{{.RUNNER}} mypy {{.SOURCES}}"
|
|
34
|
+
|
|
35
|
+
test:
|
|
36
|
+
desc: Run tests
|
|
37
|
+
cmd: "{{.RUNNER}} pytest -n auto"
|
|
38
|
+
|
|
39
|
+
testcov:
|
|
40
|
+
desc: Run tests and generate a coverage report
|
|
41
|
+
cmds:
|
|
42
|
+
- "{{.RUNNER}} coverage run"
|
|
43
|
+
- "{{.RUNNER}} coverage report -m"
|
|
44
|
+
- "{{.RUNNER}} coverage xml"
|
|
45
|
+
|
|
46
|
+
testcov-libpass:
|
|
47
|
+
cmds:
|
|
48
|
+
- "{{.RUNNER}} coverage run -m pytest -v tests/libpass"
|
|
49
|
+
- '{{.RUNNER}} coverage report -m --include "libpass/*"'
|
|
50
|
+
- "{{.RUNNER}} coverage xml"
|
|
51
|
+
|
|
52
|
+
libpass:
|
|
53
|
+
vars:
|
|
54
|
+
SOURCES: libpass tests/libpass
|
|
55
|
+
cmds:
|
|
56
|
+
- task: format
|
|
57
|
+
- "{{.RUNNER}} mypy {{.SOURCES}}"
|
|
58
|
+
- "{{.RUNNER}} pytest tests/libpass"
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
all:
|
|
62
|
+
desc: Run the standard set of checks performed in CI
|
|
63
|
+
cmds:
|
|
64
|
+
- task: format
|
|
65
|
+
- task: deptry
|
|
66
|
+
- task: typecheck
|
|
67
|
+
- task: test
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.. rst-class:: float-right without-title
|
|
2
|
+
|
|
3
|
+
.. todo::
|
|
4
|
+
|
|
5
|
+
**Caveat Emptor**
|
|
6
|
+
|
|
7
|
+
Passlib's implementations of :class:`cisco_pix` and :class:`cisco_asa` both need verification.
|
|
8
|
+
For those with access to Cisco PIX and ASA systems, verifying Passlib's reference vectors
|
|
9
|
+
would be a great help (see :issue:`51`). In the mean time, there are no guarantees
|
|
10
|
+
that passlib correctly replicates the official implementation.
|
|
11
|
+
|
|
12
|
+
.. versionchanged:: 1.7.1
|
|
13
|
+
|
|
14
|
+
A number of :ref:`bugs <passlib-asa96-bug>` were fixed after expanding
|
|
15
|
+
the reference vectors, and testing against an ASA 9.6 system.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
.. rst-class:: block-title
|
|
2
|
+
|
|
3
|
+
.. danger::
|
|
4
|
+
|
|
5
|
+
**This algorithm is not considered secure by modern standards.**
|
|
6
|
+
It should only be used when verifying existing hashes,
|
|
7
|
+
or when interacting with applications that require this format.
|
|
8
|
+
For new code, see the list of :ref:`recommended hashes <recommended-hashes>`.
|
|
9
|
+
|
|
Binary file
|