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

Metadata

Release files for libpass 1.9.4

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.4
File Size Uploaded Provenance Actions
libpass-1.9.4.tar.gz 704.9 kB Without provenance Details for libpass-1.9.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for libpass 1.9.4
File Interpreter ABI Platform Actions
libpass-1.9.4-py3-none-any.whl Python 3 none any Details for libpass-1.9.4-py3-none-any.whl

Total release size: 1.0 MB

Release files / libpass-1.9.4.tar.gz

Download URL libpass-1.9.4.tar.gz
Size 704.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4ff9a5ebf51aad1e8164453bc29c4a06926cf175a9501d87205612ba247f3cbd
BLAKE2b-256 checksum
How to use checksums
b02d953db970fa7bccd1d74e2870158878ab5b46776f3f34180ca49ce93c4ac8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / libpass-1.9.4-py3-none-any.whl

Download URL libpass-1.9.4-py3-none-any.whl
Size 307.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a608621af2d7d64579957988fac287f230f88792c83a2d0f895afb05ee429489
BLAKE2b-256 checksum
How to use checksums
be35d08a8175f20cb453b3133845afce81378437730f5cd402bb411a5fd54841
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for libpass 1.9.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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