- Generates random passwords of user-specified length
- Uses a combination of letters, numbers and symbols to create secure passwords
- Password length is configurable based on user input
- Uses the secrets module to generate cryptographically secure random characters
- Ensures at least 2 numbers and 1 special symbol in each password before considering it strong
- Logs each generated password with timestamp to passwords.log file
Password Strength Checker
- Analyzes strength of a user-input password
- Checks password for:
- Lowercase letters
- Uppercase letters
- Numbers
- Symbols
- Whitespace characters
- Calculates overall password strength score out of 1.0
- Provides feedback to user on how to improve password security
- Considers password with all character types as very strong
- Provides remarks based on strength score to change or keep password
- Logs feedback provided to user for each password checked
Run python3 PassGEN.py
- Enter desired password length when prompted
- Generated password will be printed
- Optionally check strength of the generated password
- Or check strength of a different password entered when prompted
- Python 3.x
- secrets, string, getpass, logging, datetime modules
Overall, this script generates strong random passwords and analyzes the strength of user passwords to enforce good password security practices. The logging provides an audit trail of passwords.
Note
Simply Install all needed dependencies with executing pip install -r requirements.txt
in the project directory.
This project is open source and available under the MIT License.
<3