TECHNICAL SHEET · Blue Team
DOCUMENTATION ONLY
checkPassword
Is your password in a breach?
- Language
- Python
- Platform
- Linux / macOS / Windows
- Type
- Verification CLI
- Web demo
- No
Scope on pwn3d.es
This tool has no web interface: it ships as Verification CLI. This page documents its design, flow and usage; there is no runnable demo or hosted binary.
There is no web version: it would invite people to type real passwords into a third-party page. It depends on HIBP availability and measures breach presence, not strength.
What it is and what it is for
checkPassword is a Python command-line tool that checks whether a password appears in known breaches using Have I Been Pwned’s Pwned Passwords API. It warns if the password is compromised and recommends changing it.
Its value lies in how it does this without exposing the password: it uses k-anonymity, sending only the first five characters of the SHA-1 hash and comparing locally against the list of suffixes the service returns. The full password never travels over the network.
When to use it
Validating a password before using it
Check whether a password you plan to use has already appeared in public breaches.
Security awareness
Show in training why reusing leaked passwords is dangerous.
Understanding k-anonymity
See a real case of private lookup: checking a secret without sending it in full.
How it works
Local hash
It computes the SHA-1 of the password on your machine.
Prefix query
It sends only the first 5 characters of the hash and receives the list of matching suffixes.
Local comparison
It looks for the rest of the hash in that list and reports whether the password appears in any breach.
What changes on pwn3d.es
- The pwn3d.es sheet documents the tool; the check is done with the repository CLI, not on the site.
Installation and usage
Installation
git clone https://github.com/D1se0/checkPassword.git
cd checkPassword
sudo ./requirements.shUsage
python3 checkPassword.pyStack and dependencies
- Python 3
- Verification CLI
- requests
- Query to the Pwned Passwords API
- colorama
- Coloured terminal output
- SHA-1 + k-anonymity
- Prefix matching without sending the full password
git · repository code
Explore the repository
Related tools
Sheet built from the repository README and public code. Figures and commands are limited to what the project documents.