Simple python script to allow you to search across multiple data breaches to see your password has been compromised.
The script is written in python 3
The script uses an API from HaveIBeenPwned to search on their database on the password suubmitted.
In order to protect the value of the source password being searched for, Pwned Passwords also implements a k-Anonymity model that allows a password to be searched for by partial hash. This allows the first 5 characters of a SHA-1 password hash (not case-sensitive) to be passed to the API
- Install Python 3
- Enjoy!
- Clone this repository to obtain the script.
- Create a new txt file or use the existing txt file to enter the password you want to check.
- In the txt file, each password will be seperated with a new line.
- Open your terminal (MacOs) or Command Prompt (Windows).
- Run the following command (execute the python script followed by the txt file name at the same directory):
python3 password_checker.py password.txt
- Sample response you will get on your terminal/cmd:
hahalolomg was seen 6 times. Please do not use this password.
lololo was seen 40638 times. Please do not use this password.
popopoeo was not seen, it's safe to use!
password check done!
- Andrew Lai : laiandrew2002@gmail.com