https://github.com/yashbhansali951/password-strength-checker
A Python-based password strength checker and breach verifier with strong password suggestions using the HaveIBeenPwned API.
https://github.com/yashbhansali951/password-strength-checker
api-integration beginner-friendly cybersecurity haveibeenpwned information-security password projects python security-tools
Last synced: 4 months ago
JSON representation
A Python-based password strength checker and breach verifier with strong password suggestions using the HaveIBeenPwned API.
- Host: GitHub
- URL: https://github.com/yashbhansali951/password-strength-checker
- Owner: yashbhansali951
- Created: 2025-04-28T11:21:56.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-04-28T12:06:09.000Z (6 months ago)
- Last Synced: 2025-04-29T22:38:28.486Z (6 months ago)
- Topics: api-integration, beginner-friendly, cybersecurity, haveibeenpwned, information-security, password, projects, python, security-tools
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Password Strength Checker 🔒
A Python-based tool to evaluate password strength based on structure, entropy, and exposure to known breaches using the HaveIBeenPwned API.


---
## Features
- ✅ Checks password length and complexity (uppercase, lowercase, digits, symbols).
- ✅ Rates password as **Strong**, **Moderate**, or **Weak**.
- ✅ Calculates password **entropy** (security strength in bits).
- ✅ Verifies if the password has been leaked in known data breaches.
- ✅ Provides detailed feedback on missing elements.
- ✅ Suggests strong, random passwords if the entered password is weak.---
## How it Works
- The password is evaluated for:
- Minimum length (8 characters).
- Presence of uppercase, lowercase, digits, and special characters.
- Password is **hashed with SHA-1** and checked against the [Pwned Passwords API](https://haveibeenpwned.com/API/v3#PwnedPasswords).
- Displays whether your password is **safe** or has been **compromised**.
---## Installation
1. Clone the repository:
```bash
git clone https://github.com/yourusername/password-strength-checker.git
```
2. Navigate to the project directory:
```bash
cd password-strength-checker
```
3. Install the required Python libraries:
```bash
pip install requests
```---
## Usage
Run the script:
```bash
python password_checker.pyWould you like a strong password suggestion? (yes/no): yes
Here is a suggested strong password: Xr9@eL!2v#Pt---
## Output
Enter a password to check: Example@123
Password is strong.
✅ Password not found. Good to go!
Password entropy: 75.56 bits.Would you like a strong password suggestion? (yes/no): yes
Suggested password: u8Q!z2#TqBv$wP1M