Passlib
This is a fork of https://foss.heptapod.net/python-libs/passlib
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.
- 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 libpass
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
Release files for libpass 1.9.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| libpass-1.9.3.tar.gz | 692.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| libpass-1.9.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.0 MB
Release files / libpass-1.9.3.tar.gz
| Download URL | libpass-1.9.3.tar.gz |
|---|---|
| Size | 692.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7830b9323d9ba96a841ad698a8dec1d43a2b0b7f1c855c76772e7972c1c6d959
|
|
BLAKE2b-256 checksum How to use checksums |
2af6210563eef148773ef835d21c0fa1e8a43c5b10fceb1f63d5d650635b81da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.0
|
Release files / libpass-1.9.3-py3-none-any.whl
| Download URL | libpass-1.9.3-py3-none-any.whl |
|---|---|
| Size | 307.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3cbeb14d22086660e92c30d787ea981973d67394e81c8c870e1a83cfe1c84353
|
|
BLAKE2b-256 checksum How to use checksums |
eda6ff00d926a9f4ece9e0732bcea1c3e8e9280390f48cec53f237e21f220082
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.0
|