This is a beginner-friendly Python project that checks how strong a password is based on simple cybersecurity rules.
It evaluates password length, character variety, and provides helpful feedback on how to improve weak passwords.
After the user enters a password, the program:
- Checks if the password is at least 8 characters long
- Checks for:
- Uppercase letters (A–Z)
- Lowercase letters (a–z)
- Digits (0–9)
- Special symbols (!@#$%&*)
- Gives 2 points for each rule that passes
→ Maximum score: 10/10 - Rates the password as:
- Weak
- Moderate
- Strong
- Very Strong
- Prints helpful tips for missing requirements
- Prints
"Your password is perfect!"if all conditions are met
| Rule | Points |
|---|---|
| Length ≥ 8 | +2 |
| Has uppercase letter | +2 |
| Has lowercase letter | +2 |
| Has digit | +2 |
| Has symbol | +2 |
| Maximum Score | 10/10 |
Based on the final score:
- 0–3 → Weak
- 4–6 → Moderate
- 7–8 → Strong
- 9–10 → Very Strong
If all 5 checks pass (score = 10), the program prints:
"Your password is perfect!"