|
1 | 1 | # 🔐 Password Strength Checker |
2 | 2 |
|
3 | | -A simple command-line Python tool to evaluate the strength of a given password. |
4 | | -It checks for key security features like length, character variety, and special symbols, and provides visual feedback using color-coded strength indicators. |
| 3 | +A simple Python CLI tool to check the strength of a password using regular expressions and color-coded output via `colorama`. |
| 4 | + |
| 5 | +## Features |
| 6 | + |
| 7 | +- Checks password length (minimum 8 characters) |
| 8 | +- Detects uppercase and lowercase letters |
| 9 | +- Verifies presence of numbers |
| 10 | +- Detects special characters |
| 11 | +- Color-coded strength display (Weak 🔴, Medium 🟠, Strong 🟢) |
| 12 | + |
| 13 | +## Requirements |
| 14 | + |
| 15 | +- Python 3.x |
| 16 | +- `colorama` module |
| 17 | + |
| 18 | +## Installation |
| 19 | + |
| 20 | +1. **Clone the repository**: |
| 21 | + ```bash |
| 22 | + git clone https://github.com/your-username/password-strength-checker.git |
| 23 | + cd password-strength-checker |
| 24 | + ``` |
| 25 | + |
| 26 | +2. **Install dependencies**: |
| 27 | + ```bash |
| 28 | + pip install colorama |
| 29 | + ``` |
| 30 | + |
| 31 | +## Usage |
| 32 | + |
| 33 | +Run the script from the command line: |
| 34 | + |
| 35 | +```bash |
| 36 | +python password_checker.py |
| 37 | +``` |
5 | 38 |
|
6 | 39 | --- |
7 | 40 |
|
8 | | -## 📌 Features |
| 41 | +Then enter your password when prompted: |
| 42 | + |
| 43 | +bash |
| 44 | +Copy |
| 45 | +Edit |
| 46 | +🔐 Password Strength Checker |
| 47 | + |
| 48 | +Enter your password: MyP@ssw0rd |
9 | 49 |
|
10 | | -- Checks for: |
11 | | - - Minimum length (8 characters) |
12 | | - - Uppercase letters |
13 | | - - Lowercase letters |
14 | | - - Numbers |
15 | | - - Special characters |
16 | | -- Returns one of the following: |
17 | | - - 🔴 Weak |
18 | | - - 🟠 Medium |
19 | | - - 🟢 Strong |
20 | | -- Terminal color-coded output using colorama |
| 50 | +Password Strength: 🟢 Strong |
21 | 51 |
|
22 | 52 | --- |
23 | 53 |
|
24 | | -## 💻 How It Works |
| 54 | +## Strength Criteria |
25 | 55 |
|
26 | | -The tool evaluates the password based on 5 key rules. For each rule satisfied, 1 point is awarded: |
27 | | -- Score 0-2 → Weak |
28 | | -- Score 3-4 → Medium |
29 | | -- Score 5 → Strong |
| 56 | +| Score | Criteria Met | Strength | |
| 57 | +| ----- | -------------------------- | --------- | |
| 58 | +| ≤ 2 | Fewer than 3 checks passed | 🔴 Weak | |
| 59 | +| 3–4 | Moderate checks passed | 🟠 Medium | |
| 60 | +| 5 | All checks passed (secure) | 🟢 Strong | |
| 61 | + |
| 62 | +--- |
| 63 | + |
| 64 | +# Build by AAKASH |
30 | 65 |
|
31 | | -Example: |
32 | | -bash |
33 | | -Enter your password: Rahul123 |
34 | | -Password Strength: 🟠 Medium |
|
0 commit comments