This is a Python-based password security tool that checks whether a given password has been exposed in past data breaches using the Have I Been Pwned API.
β Uses SHA-1 hashing to keep passwords secure
β Leverages Have I Been Pwned API without exposing full passwords
β Provides real-time results on password security
β Helps users avoid using compromised passwords
- The password is hashed using SHA-1 encryption.
- The first 5 characters of the hash are sent to the API.
- The API returns a list of potential password hashes.
- The script checks if the full hash exists in the database.
- If found, it informs the user how many times the password has been leaked.
This tool never sends your full password to an external server, ensuring privacy and security.
- Python 3.x
requestslibrary (install usingpip install requests)
python password_checker.py yourpassword123
#Example Output
Your Password: (yourpassword123) was FOUND 5000 times.. you should change it