Skip to main content

A python package wrapping 'password-auth' for password hashing and verification.

Project description

passuth

Python wrapper module for rust crate password-auth.

It provides a simple and secure way to hash and verify passwords using the Argon2 algorithm.

Note

It's my practical project for using Rust in Python, so it may not be the most efficient or optimized solution. You may use well-maintained libraries like argon2-cffi or bcrypt for production use.

Usage

Python API

from passuth import generate_hash, verify_password

hashed = generate_hash("your_password")
print(hashed)
# $argon2id$v=19$m=19456,t=2,p=1$3IF6RWPqOkLk6ZboZ8rPqg$8eEHegumboozWtxJ6X4Fx1++zkvxiKUMIbP+BqgysIo

# To verify
is_valid = verify_password("your_password", hashed)
print("Password valid:", is_valid)
# Password valid: True

Command Line Interface

You can also use passuth from the command line:

Hash a password:

passuth generate your_password
# $argon2id$v=19$m=19456,t=2,p=1$g/wfcEvVbgfhR1ElhZZQ8Q$T0Ax8wFtAFXoRp87SKD7o9zBl3VwQU3/YX6ScRkY6Ts

Verify a password:

passuth verify your_password '$argon2id$v=19$m=19456,t=2,p=1$g/wfcEvVbgfhR1ElhZZQ8Q$T0Ax8wFtAFXoRp87SKD7o9zBl3VwQU3/YX6ScRkY6Ts'
# true
passuth verify wrong_password '$argon2id$v=19$m=19456,t=2,p=1$g/wfcEvVbgfhR1ElhZZQ8Q$T0Ax8wFtAFXoRp87SKD7o9zBl3VwQU3/YX6ScRkY6Ts'
# false

Replace your_password with your actual password and hash.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

passuth-0.2.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

passuth-0.2.0-pp311-pypy311_pp73-win_amd64.whl (155.8 kB view details)

Uploaded PyPyWindows x86-64

passuth-0.2.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl (250.9 kB view details)

Uploaded PyPymanylinux: glibc 2.28+ x86-64

passuth-0.2.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl (227.0 kB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

passuth-0.2.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl (213.5 kB view details)

Uploaded PyPymacOS 11.0+ ARM64

passuth-0.2.0-pp311-pypy311_pp73-macosx_10_15_x86_64.whl (239.0 kB view details)

Uploaded PyPymacOS 10.15+ x86-64

passuth-0.2.0-pp310-pypy310_pp73-win_amd64.whl (156.0 kB view details)

Uploaded PyPyWindows x86-64

passuth-0.2.0-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl (251.3 kB view details)

Uploaded PyPymanylinux: glibc 2.28+ x86-64

passuth-0.2.0-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl (227.3 kB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

passuth-0.2.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl (213.6 kB view details)

Uploaded PyPymacOS 11.0+ ARM64

passuth-0.2.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl (239.2 kB view details)

Uploaded PyPymacOS 10.15+ x86-64

passuth-0.2.0-cp313-cp313t-win_arm64.whl (133.8 kB view details)

Uploaded CPython 3.13tWindows ARM64

passuth-0.2.0-cp313-cp313t-win_amd64.whl (154.0 kB view details)

Uploaded CPython 3.13tWindows x86-64

passuth-0.2.0-cp313-cp313t-musllinux_1_2_x86_64.whl (328.0 kB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ x86-64

passuth-0.2.0-cp313-cp313t-musllinux_1_2_aarch64.whl (290.1 kB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARM64

passuth-0.2.0-cp313-cp313t-manylinux_2_28_x86_64.whl (249.0 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.28+ x86-64

passuth-0.2.0-cp313-cp313t-manylinux_2_28_aarch64.whl (225.7 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.28+ ARM64

passuth-0.2.0-cp313-cp313t-macosx_11_0_arm64.whl (211.8 kB view details)

Uploaded CPython 3.13tmacOS 11.0+ ARM64

passuth-0.2.0-cp313-cp313t-macosx_10_15_x86_64.whl (237.0 kB view details)

Uploaded CPython 3.13tmacOS 10.15+ x86-64

passuth-0.2.0-cp39-abi3-win_arm64.whl (135.9 kB view details)

Uploaded CPython 3.9+Windows ARM64

passuth-0.2.0-cp39-abi3-win_amd64.whl (156.1 kB view details)

Uploaded CPython 3.9+Windows x86-64

passuth-0.2.0-cp39-abi3-musllinux_1_2_x86_64.whl (330.6 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ x86-64

passuth-0.2.0-cp39-abi3-musllinux_1_2_aarch64.whl (292.3 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARM64

passuth-0.2.0-cp39-abi3-manylinux_2_28_x86_64.whl (251.7 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ x86-64

passuth-0.2.0-cp39-abi3-manylinux_2_28_aarch64.whl (227.9 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ ARM64

passuth-0.2.0-cp39-abi3-macosx_11_0_arm64.whl (214.2 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

passuth-0.2.0-cp39-abi3-macosx_10_15_x86_64.whl (239.5 kB view details)

Uploaded CPython 3.9+macOS 10.15+ x86-64

File details

Details for the file passuth-0.2.0.tar.gz.

File metadata

  • Download URL: passuth-0.2.0.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.13

File hashes

Hashes for passuth-0.2.0.tar.gz
Algorithm Hash digest
SHA256 eeae7aece8643c4f6af784d70d0ccaa9564ab7164630cb7c7c7c3ce4f337786e
MD5 ad0b15850cc38729df2cf849f82f6df0
BLAKE2b-256 3e46bfc90cf0ca7833de297ccaf78d38709645933f87e5c9bd813514b59e17af

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-pp311-pypy311_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-pp311-pypy311_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 7217e160febea99924fecacef8e5662a853898431f7a3894b20deef1788e347f
MD5 754d4316948db629d902f3379e0166b2
BLAKE2b-256 98d690b1b3129b15b9665a63a69a233a066df4a26632ddf5468d92e403c56edd

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b452517a68719fe4b324bc42083d5db2f91fd5aa89313ccebf40517a9bc5e338
MD5 042de50e765e269aaadbac70795f8db3
BLAKE2b-256 26b7c1423bf157e309c7e9995108cfe72483a27d0c9b7af29b9830faeaed7a9e

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5cd9590a4166930d4df8ae08cec8a68d605b2134eaf5c8c5ecd17514b6a9aff7
MD5 26ab4b7c915bea7561d3be723e56b253
BLAKE2b-256 f83e4612e3ea03c52e47c8249b8c5f5427964334d3a3197009d4daafd5271422

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f9fbe9eba6feabdd28bfe340257e86e8b2a6d523aec29622f9802aa46b6480a
MD5 7a75276f5833b03912086f05753b7e53
BLAKE2b-256 62ff590daa42e98b3b6c36cbc341b9a289461a45bab0642b6e51bcd48b48777f

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-pp311-pypy311_pp73-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-pp311-pypy311_pp73-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 1b6851f1566a8ec000a7b3cd3acc99d45911ec919d2919c642c5aa91dedbb905
MD5 a0465ce7c970639160ece295aa2fc310
BLAKE2b-256 5c41b9e0ecb82ad62a5632c0c2b4d8a5b3855437d48f3b5bb8a313ab6eaee6f6

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-pp310-pypy310_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-pp310-pypy310_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 6438426177e8902ce33de894740e26c71f70eaf0b54649665e8f6b375434692b
MD5 e8a077b314d291128e86347394b14bd7
BLAKE2b-256 f53770c59beed6d202f453f1e3d9fd69000e803e223d0e3b38732e927c05452c

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 18f15f39c5f9c6a0ebef4ca67458a9cfc21fa1544609607cdbdfcec8f75d4d77
MD5 f455d75d62b3635e2d7f76051e8288bc
BLAKE2b-256 39b1762c24356f3044156c8124de23042f5f8260ac2a3de6d7210bf1c8658fa3

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 cbcbf92b1190f6dc55aacadf5b54de410ef8fd1968b95cd3393d6b5ec98b16c8
MD5 04a168753f470eafd2d77bef307a06ba
BLAKE2b-256 7ae10d5d686be04871d9cba7b4277e15e12adf7c16593a1c73adb56dff252019

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 05105d259c089a6095fdcff6f1dda639ff0f54ba07066f78bfaa47da76f2f4a1
MD5 21016a89a5cbd9705b9c15c17ea1bb92
BLAKE2b-256 3602f295f5615541f2455031a2facc9ba47d0566b1bfc29d192fc20542c18d34

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 1557dfd0fe28b7b50edd7dbc2b6478670db2bed229bc6782d48e6a3ef15a360a
MD5 89c4e39a9dc6f0e852d6dd2603f97fff
BLAKE2b-256 b2a5ab1a5735aa5e677a818e224cc4026b74d36c3e1d2c56569f575e52746496

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-cp313-cp313t-win_arm64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-cp313-cp313t-win_arm64.whl
Algorithm Hash digest
SHA256 1dbe7d8d2993fcb590ccfd9fa62d1969cd738727b6f8af68c8583f88c81ff236
MD5 95f5579989ec5325dda7fe2159cabc03
BLAKE2b-256 34ec987589efb96772c03a25c1326acbd4495745fbb2e6762c0c761240c9c9d8

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-cp313-cp313t-win_amd64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-cp313-cp313t-win_amd64.whl
Algorithm Hash digest
SHA256 28780ae25732ad098319c611e772d7f09c3dacb33ff428a9eb858639c8cc9440
MD5 fa668450a49ccd794f720cbe52a8c7d4
BLAKE2b-256 06667ee116528a7346d290540c12314393e48333f366c84ac8b55a20e73b746d

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-cp313-cp313t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-cp313-cp313t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ecbbbb75a3f86090c6aa9a74126dbf2155637ea199a6677b0663c756a5e16e07
MD5 88158ee75e837760f58a9f9043828507
BLAKE2b-256 5e0d2d0bc3ff6aac68a8f03e1bfe0e22ec651eb7a49047b82775b9fe492b5957

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-cp313-cp313t-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-cp313-cp313t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 a312cf2ff607abead4dde8701b9d7e8981076cbe48bdfffe05dc6458799f4042
MD5 8563987afaa1082cccc1424995acafdc
BLAKE2b-256 d1b9db6dc6f24c6d7b403816ddcbde0a832a65bb3b2ce612fc446c8371c5968f

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-cp313-cp313t-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-cp313-cp313t-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1761f8ca3bf85afae3fbf26b1e0d898c1710bb1173620bc1da1012be962a5b2d
MD5 0f228c9df242a20f66d07714563e358d
BLAKE2b-256 3206b50443475d7d372a5cc7d722b0c207ffe135d2d9456e0dc0f553d203c690

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-cp313-cp313t-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-cp313-cp313t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fec35490c247a4e45f7a273e7206cebf3a0b3265427cfdda169bcc6a74db715d
MD5 c8775b5ec9289b263a64f91c4ced2268
BLAKE2b-256 80ba2e1aa5d2e27c32b1059eb2c404ce7087e313bc22e257415f57738cba1d02

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-cp313-cp313t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-cp313-cp313t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 14af992472eb35aa2c62be36b44e7ca38be8fc61a81762469a2a6822e41aa2dd
MD5 edb157890f9ac117fbaca4bf46a34bcb
BLAKE2b-256 9db138b008bd2d54c8556bd7f3631a180d2daa4ad35f8cd449c5c35006e302f6

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-cp313-cp313t-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-cp313-cp313t-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 ec162b88a1dec84758c72aa40268d329a225422097e0ea48eb3bd45f50a9b690
MD5 1738e085af48f9710e8c33beee21232d
BLAKE2b-256 80cee31ba175d164433c493045d5b3e2cbf6d9d5145607bd0af36a1524cad3cd

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-cp39-abi3-win_arm64.whl.

File metadata

  • Download URL: passuth-0.2.0-cp39-abi3-win_arm64.whl
  • Upload date:
  • Size: 135.9 kB
  • Tags: CPython 3.9+, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.13

File hashes

Hashes for passuth-0.2.0-cp39-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 0ea197fcf2fdfa8b776aa72464ff8473b9f369427d5763ccea819c144cb00212
MD5 c06d252642a66dada54b967faea2c39c
BLAKE2b-256 3c05c63554ad83f0ea75e091e996fa39756bf14efa17e2c7076a138afc4a107f

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: passuth-0.2.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 156.1 kB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.13

File hashes

Hashes for passuth-0.2.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f5f87c79eeb71cf7418295a3180d47a2af96bf9bffae6ce2a335b92d07e6984d
MD5 8f543db7a044acb3c3e51a53e3d06046
BLAKE2b-256 a7ce9d127921e61e463f30a9064f4c48278fc69179ea9efefa7644405e153863

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 56263ae39882841256e183b10f641597a173b6df58d555e3afa440319a067f35
MD5 12fd83330fa670d75bfc56304a542b49
BLAKE2b-256 589c46e37445f7615be3fbb64b6d7f24483a09988c4a1f8c1a04aeacc3eb8e70

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-cp39-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 ec1f29bea1c708d8256706587e0be3245e0d26a9937a3504f5f704619699f524
MD5 530c2eee41f50a87b56a53bb35a2bef2
BLAKE2b-256 2ddc07445e46b7d87bdb97c4b2f2adb4c5db431d038888144552c1aebe7bfe61

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-cp39-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dd4332342bae012293167f361132a781a1664fb96665d0a9aa2333a2445b4ce0
MD5 eda91a6654aa650b2eff1677067564b4
BLAKE2b-256 165eb330048212c33c171b0921cfe90660df0e341f888e2571313d75cfd1c5da

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-cp39-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2b6f1c49ff906567989c2f2254b1cb68347e0d02efb71d6a78216633d9a7157a
MD5 0231c0b0ca50d336ad1475e9e047ef4c
BLAKE2b-256 f6641ec040409e5c7cd5bb5368f14128f5c03f764d3756899dd757334e091c94

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bac1a2bd1eaf6b4e5e5fe1ef4490a411bccaf8192ffe1e45d2ddd106f21297b4
MD5 3bf429875d2e687ddd20c2dd23ed54cc
BLAKE2b-256 a46ec20fc38af5afd7da9ae6a2ff115cd8d985a2b91cf66d68f327cca63488a1

See more details on using hashes here.

File details

Details for the file passuth-0.2.0-cp39-abi3-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for passuth-0.2.0-cp39-abi3-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 f8101bc1f07bd3f448cde1f17a1444cec5d3f107d0a2e8c9d977ceb4e6c38bbd
MD5 bd5f1f07da2e4c82393714e7cdd183ad
BLAKE2b-256 6e5435640f8a43999a5db1141cab733a3e2a2e90b2b0225fb6bde0ee43d604da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page