Passlib
This is the official repository of Passlib, published on PyPI as passlib. It continues the original project at https://foss.heptapod.net/python-libs/passlib (unmaintained since its final release, 1.7.4, in 2020).
Passlib is a password hashing library for Python 3, which provides cross-platform implementations of over 30 password hashing algorithms, as well as a framework for managing existing password hashes. It's designed to be useful for a wide range of tasks, from verifying a hash found in /etc/shadow, to providing full-strength password hashing for multi-user application.
Versions 1.7.5 through 1.9.4 were published on PyPI as
libpass; releases from 1.9.5 onward
are published under passlib again.
- See the documentation for details, installation instructions, and examples.
- See the changelog for a description of what's new in Passlib.
- Visit PyPI for the latest stable release.
Installation
pip install passlib
Available extras:
pip install passlib[argon2]
pip install passlib[bcrypt]
pip install passlib[totp]
Usage
A quick example of using passlib to integrate into a new application:
from passlib.context import CryptContext
context = CryptContext(schemes=["sha512_crypt"])
hash = context.hash("password")
# $6$rounds=656000$jFKvvPmUywlqjSs.$iNeK/OWVry7KThNyzR01xzqZzgk/VA75.sR4yXXblsPAoEugtdO3zn/O4VEG3Izp8l5.//lMGpuRCOqvKknHo1
# Verifying a password
is_valid = context.verify("password", hash)
# > True
For more details and an extended set of examples, see the full documentation
Metadata
Release files for passlib 1.9.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| passlib-1.9.5.tar.gz | 652.5 kB | With provenance | Details for passlib-1.9.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| passlib-1.9.5-py3-none-any.whl | Python 3 | none | any | Details for passlib-1.9.5-py3-none-any.whl |
Total release size: 959.8 kB
Release files / passlib-1.9.5.tar.gz
| Download URL | passlib-1.9.5.tar.gz |
|---|---|
| Size | 652.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15d39a9b2044a86f341a2e443170e4e9a6d71fe0266fe28b91032a8ca723f8aa
|
|
BLAKE2b-256 checksum How to use checksums |
4a050c74404b2e028a949ab89eac270203dc151d3033656b60b2f71db9fea6dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / passlib-1.9.5-py3-none-any.whl
| Download URL | passlib-1.9.5-py3-none-any.whl |
|---|---|
| Size | 307.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9dac9b4c56322a2b386f8d7d5d2f5056a20ed21c491a7ff24f0b2747f57c28e
|
|
BLAKE2b-256 checksum How to use checksums |
bb2a6e5e198b3e33c25746e60bd83cc2703bd24ff77a9afb7224dfb09cce54e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logSecurity for passlib 1.9.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for passlib-1.9.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.