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 <https://passlib.readthedocs.io/en/stable/history>
_ 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
Hashes for libpass-1.7.5.post0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6edc3329e182eca71f8e5ce577a42242f21887f9a19b151d8352cb51f87a5fa0 |
|
MD5 | 4d01d7064879df465b0b2ef17e3c84f6 |
|
BLAKE2b-256 | e4eafd084077cdd960057e2096151c6190c8092916e5615923a43a882c75add3 |