A lightweight Python CLI tool to evaluate password strength with actionable feedback.
Password Strength Checker is a simple yet powerful command-line tool built in Python to analyze password strength and provide clear, actionable suggestions.
It runs completely offline, ensuring your passwords are never exposed or sent over the internet.
- 🔒 Secure Input – Hidden password entry (no echo)
- 📊 Strength Score – Numeric score (0–100)
- 🏷️ Labels – Weak / Medium / Strong / Very Strong
- 💡 Actionable Feedback – Suggestions to improve passwords
- ⚙️ CLI Friendly – Supports
--min-scorefor automation - 🚫 No Dependencies – Lightweight and fast
PASSWORD-CHECKER/
├── main.py # CLI entry point
├── password/
│ ├── __init__.py # Package exports
│ ├── cli.py # CLI handling
│ └── scorer.py # Strength logic
└── README.md
---
## ⚙️ Requirements
* **Python 3.8+**
* No additional libraries required
---
## 🛠️ Installation
Clone or download the repository:
```bash
git clone https://github.com/HimanshuKumarRout/password-checker.git
cd "PASSWORD CHECKER"
(Optional) Create a virtual environment:
python -m venv .venv
.\.venv\Scripts\activate # Windowspython main.py "YourPasswordHere"python main.pyPrompt:
Enter password (input hidden):
Score: 72/100
Strength: Strong
Feedback:
- Increase length to 16+ characters for better protection.
- Avoid common words or obvious patterns.
Enforce minimum password strength:
python main.py "MyPassword123" --min-score 800→ Meets required strength2→ Below minimum score
Perfect for:
- CI/CD pipelines
- Internal validation scripts
- Security checks
The scoring system in scorer.py evaluates:
-
📏 Length of password
-
🔤 Character diversity (uppercase, lowercase, digits, symbols)
-
🔢 Entropy-like estimation
-
⚠️ Penalties for weak patterns:- Common passwords
- Sequential patterns (
1234,abcd) - Repeated characters (
aaaaaa)
score→ Numeric value (0–100)label→ Strength categoryfeedback→ Improvement tipsdetails→ Diagnostic insights
-
❌ Not a replacement for professional security auditing tools
-
🔐 Use proper hashing algorithms in real systems:
bcryptscryptargon2
-
🚫 Never store or log real passwords
Contributions are welcome!
- Fork the repo
- Create a new branch (
feature/your-feature) - Commit your changes
- Push to your branch
- Open a Pull Request
Himanshu Kumar Rout
- GitHub: https://github.com/HimanshuKumarRout
- Email: himanshurout136@gmail.com
Add your preferred license (MIT recommended).
Built with 🔐 for better password security.