This is a simple command-line tool that evaluates the strength of a password based on five security rules:
β Minimum 8 characters
β At least one uppercase letter
β At least one lowercase letter
β At least one digit
β At least one special character (!@#$%^&*(),.?":{}|<>)
It uses regular expressions (re module) for pattern matching and secure password input (getpass module) to hide the password while typing.
π How to Run the Program
Make sure you have Python 3 installed on your system. You can check by running:
python --version
or
python3 --version
git clone https://github.com/ltsMatthew/py_password_checker.git
cd py_password_checker
python password_checker.py
or
python3 password_checker.py
Enter your password: ********
Password Strength Analysis:
Length: Pass
Uppercase: Fail
Lowercase: Pass
Digit: Pass
Special: Fail
Moderate Password β Consider Making it Stronger!
If the password is weak, it will recommend changing it:
Weak Password! Change it Immediately!
If the password is strong it will display:
Strong Password!
- Python π
- Regular Expressions (re) for pattern matching
- getpass for secure password input