https://github.com/notypecheck/passlib
Passlib fork
https://github.com/notypecheck/passlib
hashing password-hashing python
Last synced: 2 months ago
JSON representation
Passlib fork
- Host: GitHub
- URL: https://github.com/notypecheck/passlib
- Owner: notypecheck
- License: other
- Created: 2024-09-10T18:23:41.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-10-27T15:00:05.000Z (8 months ago)
- Last Synced: 2026-03-12T07:26:28.875Z (3 months ago)
- Topics: hashing, password-hashing, python
- Language: Python
- Homepage:
- Size: 35.5 MB
- Stars: 31
- Watchers: 6
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Passlib
[](https://pypi.org/pypi/libpass)
[](https://pypi.org/project/libpass)
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](https://passlib.readthedocs.io)
for details, installation instructions, and examples.
- See the [changelog](https://github.com/notypecheck/passlib/blob/main/CHANGELOG.md)
for a description of what's new in Passlib.
- Visit [PyPI](https://pypi.org/project/libpass) for the latest stable release.
## Installation
```shell
pip install libpass
```
## Usage
A quick example of using passlib to integrate into a new application:
```python
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