Skip to main content

Passlib

image image

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)

Source distribution for libpass 1.9.3
File Size Uploaded
libpass-1.9.3.tar.gz 692.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for libpass 1.9.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.9.3 This release

2 release files

1.9.2

2 release files

1.9.1

2 release files

1.9.0

2 release files

1.8.2

2 release files

1.8.1

2 release files

1.8.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page