carta

python-bcrypt(1) on Linux

The text ab5bace230dc, as Debian 8 (Jessie) shipped it. The page shows this text now.

a module to implement OpenBSD's Blowfish password hash algorithm This manual page was written for the Debian distribution because the original program does not have a manual page. python-bcrypt is a Python module implementating the OpenBSD Blowfish password hashing algorithm, as described in "A Future-Adaptable Password Scheme" by Niels Provos and David Mazieres: http://www.openbsd.org/papers/bcrypt-paper.ps This system hashes passwords using a version of Bruce Schneier's Blowfish block cipher with modifications designed to raise the cost of off-line password cracking. The computation cost of the algorithm is parametrised, so it can be increased as computers get faster. A simple example demonstrates most of the features: import bcrypt # Hash a password for the first time hashed = bcrypt.hashpw(password, bcrypt.gensalt()) # gensalt's log_rounds parameter determines the complexity # the work factor is 2**log_rounds, and the default is 12 hashed = bcrypt.hashpw(password, bcrypt.gensalt(10)) # Check that an unencrypted password matches one that has # previously been hashed if bcrypt.hashpw(plaintext, hashed) == hashed: print "It matches" else: print "It does not match"

python-bcrypt(1) on Linux now