
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
This script uses the pwnedpasswords.com v2 api to check your password in a secure way (using the K-anonymity method)
The full Hash is never transmitted over the wire, only the first 5 characters. The comparison happens offline.
Special thanks to Troy Hunt (@troyhunt) for making this script possible.
pip install pywnedpasswords
pywnedpasswords
Insert your password when asked.
the output will either be:
Password to check:
Found your password 47205 times.
or in case your password is secure
Password to check:
Your password did not appear in PwnedPasswords yet.
Discouraged - as it might leaves the password in your shell history
pywnedpasswords Passw0rd
Found your password 46980 times.
Discouraged - as it might leaves the password in your shell history
echo -n 'Passw0rd!' | pywnedpasswords
Found your password 46980 times.
pywnedpasswords -f list-of-passwords.txt
Result is in the form: <line number>: <number of time the password was found>
. 0
meaning the password is not known from Have I Been Pwned yet.
0: 7026 1: 45337 2: 376 3: 51 4: 27 5: 11 6: 136 7: 1 8: 6 9: 1 10: 0 11: 0 12: 0
The pywnedpasswords
exits with code 2
if the password is know of Have I Been Pwned already, and exit code 0
otherwise.
© xmatthias 2018
FAQs
Client for HIBP passwords api using K-Anonymity method
We found that pywnedpasswords demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.