Navigation

Passlib is a password hashing library for Python 2 & 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.

As a quick sample, the following code hashes and then verifies a password
using the PBKDF2-SHA256 algorithm:

New users in particular will want to visit the walkthrough, as it provides
introductory documentation including installation requirements,
an overview of what passlib provides, and a guide for getting started quickly.