passhashdb
Password Hash Database is an efficient way of checking passwords against a password (hash) list.
This is specifically written to handle the files from Have I been Pwned: Pwned Passwords lists.
Setup
Install this package using pip:
$ sudo pip3 install passhashdb-x.x.x.tar.gz
Download the latest password file, and extract the text file.
Convert the text format to binary "passhashdb" format. This will take a while!
$ hibp-to-passhashdb pwned-passwords-sha1-ordered-by-hash-v5.txt \
pwned-passwords-sha1-ordered-by-hash-v5.bin
I recommend "installing" the file to /usr/share.
Use with Samba
This can be used with Samba's check password script
hook to check passwords as they are changed.
I recommend writing a small wrapper script like this:
/etc/samba/check_password.sh
#!/bin/sh
PASSDB="/usr/share/pwned-passwords-sha1-ordered-by-hash-v5.bin"
LOGFILE="/var/log/samba/check-passhashdb.log"
exec /usr/local/bin/samba-check-passhashdb $PASSDB 2>> $LOGFILE
Then add this to /etc/samba/smb.conf:
check password script = /etc/samba/check_password.sh
Metadata
Release files for passhashdb 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| passhashdb-0.0.1.tar.gz | 4.1 kB | Without provenance | Details for passhashdb-0.0.1.tar.gz |
Release files / passhashdb-0.0.1.tar.gz
| Download URL | passhashdb-0.0.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85739a8d91630ee8aa463e7adc7a3fcbebf4a732ead856f87ac1c04ee28d288c
|
|
BLAKE2b-256 checksum How to use checksums |
e75cdda7a8529680ecfc1b2fa9835a1176519ce0abfb5d027ecb3305a7be7beb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
|
Security for passhashdb 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.