| Server IP : 178.105.222.151 / Your IP : 216.73.216.38 Web Server : nginx/1.28.3 System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.5.4 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /proc/thread-self/root/usr/share/doc/python3-passlib/ |
Upload File : |
# 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