This is a simple Python script that generates passwords based on user-specified difficulty levels. The difficulty levels determine the length and complexity of the generated password.
- Generates passwords of varying difficulty:
- Easy: Includes lowercase letters and is 8 characters long.
- Medium: Includes lowercase and uppercase letters, and numbers, and is 12 characters long.
- Hard: Includes lowercase and uppercase letters, numbers, and special characters, and is 16 characters long.
- Python 3.x
-
Clone the Repository:
git clone https://github.com/singhvijayp/passgen.git cd passgen
-
Run the Script:
python passgen.py
-
Follow the Prompts:
- The script will prompt you to select a password difficulty level:
Select password difficulty level: 1. Easy 2. Medium 3. Hard Enter the number of your choice:
- Enter the number corresponding to your choice (1 for Easy, 2 for Medium, 3 for Hard).
- The script will generate and display a password based on the selected difficulty level.
- The script will prompt you to select a password difficulty level:
- Fork the repository
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
- This script uses the
string
andrandom
libraries from Python's standard library.