Fork of passlib, a comprehensive password hashing framework supporting over 30 schemes
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file libpass-1.8.1.tar.gz
.
File metadata
- Download URL: libpass-1.8.1.tar.gz
- Upload date:
- Size: 277.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.18.1 CPython/3.10.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4a4a936ddb8a886ca6d2c37859bff1f6de25f57eb74466d01454a7fb6c5ce1b |
|
MD5 | 41dd05750350f3300717478c3f35eabd |
|
BLAKE2b-256 | 975441526153bf31c8e8367cb6efe83acda84c4b2cf82736be0806d3cff93039 |
File details
Details for the file libpass-1.8.1-py3-none-any.whl
.
File metadata
- Download URL: libpass-1.8.1-py3-none-any.whl
- Upload date:
- Size: 310.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.18.1 CPython/3.10.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eef494740e3bc1455935cba21f91d2e0a8dac1ae9980bd171fbacd25517a9ba |
|
MD5 | 37f429bf1fb4d3e29a9d51f23d8fddeb |
|
BLAKE2b-256 | f487db02ba11cd0ffee8a677988a47ce0d3f14da0abbdc6d7cf0cc1c07ed4492 |