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.3.tar.gz (692.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

libpass-1.9.3-py3-none-any.whl (307.1 kB view details)

Uploaded Python 3

File details

Details for the file libpass-1.9.3.tar.gz.

File metadata

  • Download URL: libpass-1.9.3.tar.gz
  • Upload date:
  • Size: 692.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.0

File hashes

Hashes for libpass-1.9.3.tar.gz
Algorithm Hash digest
SHA256 7830b9323d9ba96a841ad698a8dec1d43a2b0b7f1c855c76772e7972c1c6d959
MD5 adb10a034901fe710584ce9e2a1d9da8
BLAKE2b-256 2af6210563eef148773ef835d21c0fa1e8a43c5b10fceb1f63d5d650635b81da

See more details on using hashes here.

File details

Details for the file libpass-1.9.3-py3-none-any.whl.

File metadata

  • Download URL: libpass-1.9.3-py3-none-any.whl
  • Upload date:
  • Size: 307.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.0

File hashes

Hashes for libpass-1.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3cbeb14d22086660e92c30d787ea981973d67394e81c8c870e1a83cfe1c84353
MD5 8317878f72aa6e548154323a76919e5c
BLAKE2b-256 eda6ff00d926a9f4ece9e0732bcea1c3e8e9280390f48cec53f237e21f220082

See more details on using hashes here.

Supported by

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