Skip to main content

Fork of passlib, a comprehensive password hashing framework supporting over 30 schemes

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libpass-1.9.1.post0.tar.gz (672.4 kB view details)

Uploaded Source

Built Distribution

libpass-1.9.1.post0-py3-none-any.whl (307.0 kB view details)

Uploaded Python 3

File details

Details for the file libpass-1.9.1.post0.tar.gz.

File metadata

  • Download URL: libpass-1.9.1.post0.tar.gz
  • Upload date:
  • Size: 672.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.4

File hashes

Hashes for libpass-1.9.1.post0.tar.gz
Algorithm Hash digest
SHA256 5a4c3eb4985c6847cf046ae83c1ec1620bc157cf18714facad324650231c457e
MD5 14ee1eafb4ff7212bf3ea9fbb6561e91
BLAKE2b-256 91c210637ae3311ac98bffa2d365c9b0fb3ef6bfe4fc13997906844b13bdfc91

See more details on using hashes here.

File details

Details for the file libpass-1.9.1.post0-py3-none-any.whl.

File metadata

File hashes

Hashes for libpass-1.9.1.post0-py3-none-any.whl
Algorithm Hash digest
SHA256 5bb794bac97042b814ab1eeb187c72a95d128cefbcee3c00c630f062c2da199c
MD5 0ec9fc312e827257eb7d473108825263
BLAKE2b-256 bb50760777cbc436964ad69ee045e2b8777cafbc3e44a3f1d00613f8d32e83c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page