|
| 1 | +# Password Strength Checker |
| 2 | + |
| 3 | +This is a simple Python script that checks the strength of a given password based on various criteria. It evaluates the password for length, lowercase letters, uppercase letters, digits, and special characters, and provides feedback on its strength. |
| 4 | + |
| 5 | +## How to Use |
| 6 | + |
| 7 | +1. Clone the repository or download the script file `password_strength_checker.py`. |
| 8 | + |
| 9 | +2. Run the script using Python (Python 3.x is recommended). |
| 10 | + |
| 11 | +3. Enter the password you want to check when prompted. |
| 12 | + |
| 13 | +4. The script will evaluate the password and display its strength along with any areas of improvement. |
| 14 | + |
| 15 | +## Criteria for Password Strength |
| 16 | + |
| 17 | +The password is evaluated against the following criteria: |
| 18 | + |
| 19 | +- Minimum password length: The password should have at least 8 characters. |
| 20 | + |
| 21 | +- At least one lowercase letter: The password should contain at least one lowercase letter (a-z). |
| 22 | + |
| 23 | +- At least one uppercase letter: The password should contain at least one uppercase letter (A-Z). |
| 24 | + |
| 25 | +- At least one digit: The password should contain at least one digit (0-9). |
| 26 | + |
| 27 | +- At least one special character: The password should contain at least one special character (!@#$%^&*()_+=-[]{};:'",.<>?/\\|). |
| 28 | + |
| 29 | +## Password Strength Scores |
| 30 | + |
| 31 | +The password is given a strength score based on the number of criteria met: |
| 32 | + |
| 33 | +- 1: Weak - The password does not meet the minimum length requirement. |
| 34 | + |
| 35 | +- 2: Moderate - The password meets the minimum length requirement but lacks some character types. |
| 36 | + |
| 37 | +- 3: Fair - The password meets the minimum length requirement and includes lowercase letters, uppercase letters, and digits. |
| 38 | + |
| 39 | +- 4: Strong - The password meets the minimum length requirement and includes lowercase letters, uppercase letters, digits, and at least one special character. |
| 40 | + |
| 41 | +- 5: Very Strong - The password meets all criteria and is considered very strong. |
| 42 | + |
| 43 | +## Example |
| 44 | + |
| 45 | +```bash |
| 46 | +$ python password_strength_checker.py |
| 47 | +Enter your password: My$3cureP@ssw0rd |
| 48 | + |
| 49 | +Password Strength: 5 |
| 50 | +Password is very strong! |
| 51 | +``` |
| 52 | + |
| 53 | +## Customization |
| 54 | + |
| 55 | +You can customize the min_length variable in the script to set your desired minimum password length. |
| 56 | + |
| 57 | +Feel free to modify and enhance the script according to your needs and security requirements. |
0 commit comments