Skip to content

This Python script generates random passwords of user-specified length containing letters, numbers, and symbols. It also analyzes password strength by checking for different character types and provides feedback on improving security. The script logs generated passwords and strength checks with timestamps.

License

Notifications You must be signed in to change notification settings

Qmirdev/Password-Generator-Checker-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Password Generator & Strength Checker

This Python script has two main features for generating and analyzing passwords:

Password Generator

  • 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

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

Usage

Run python3 PassGEN.py

  1. Enter desired password length when prompted
  2. Generated password will be printed
  3. Optionally check strength of the generated password
  4. Or check strength of a different password entered when prompted

Requirements

  • 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.

License

This project is open source and available under the MIT License.

<3

About

This Python script generates random passwords of user-specified length containing letters, numbers, and symbols. It also analyzes password strength by checking for different character types and provides feedback on improving security. The script logs generated passwords and strength checks with timestamps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages