A minimal bcrypt password hashing and key derivation library for Python. Current version 0.4 is outdated and no longer maintained; most users should switch to bcrypt or passlib.
pip install py-bcryptVerified import paths — ran on the pinned version, not inferred.
Hash a password and verify it.
Replace py-bcrypt with 'bcrypt' (pip install bcrypt) and update imports accordingly.
Switch to a C-extension based library like bcrypt.
Always use bytes: bcrypt.hashpw(password.encode(), bcrypt.gensalt()).
Install with 'pip install py-bcrypt' and import as 'import bcrypt'.
Encode the string: bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt()).No dependency data recorded yet.