A command-line password generator with customizable options and strength checker. Built with Python 3 — no external dependencies needed.
- Generate random passwords (8-50 characters)
- Customize character types: uppercase, numbers, symbols
- Password strength checker (Weak/Medium/Strong)
- Generate multiple passwords at once
- Interactive menu-driven interface
- Guaranteed character variety in every password
# Make sure Python 3.8+ is installed
python --version
# Clone this repository
git clone https://github.com/YOUR-USERNAME/python-password-generator.git
cd python-password-generator
# Run the program
python password_generator.py==================================================
🔐 PYTHON PASSWORD GENERATOR
Beginnersly.com — Python Projects
==================================================
📋 Menu:
1. Generate Password
2. Check Password Strength
3. Generate Multiple Passwords
4. Exit
Enter choice (1-4): 1
Password length (8-50, default 12): 16
Include uppercase? (y/n, default y): y
Include numbers? (y/n, default y): y
Include symbols? (y/n, default y): y
🔑 Generated Password: K#9mZp$2xR&wL4nQ
📊 Strength: ✅ STRONG (7/7)
📏 Length: 16 characters
randommodule — generating random charactersstringmodule — character sets (ascii_letters, digits, punctuation)- Functions with default parameters
- List comprehensions
- Input validation and error handling
- While loop for menu system
python-password-generator/
├── password_generator.py # Main source code
├── README.md # This file
├── .gitignore # Git ignore rules
└── LICENSE # MIT License
- Python 3.8 or higher
- No external packages needed (uses only built-in modules)
- Add copy-to-clipboard (using
pyperclip) - Build GUI version with Tkinter
- Add password history (encrypted storage)
- Add pronounceable password mode
- Add passphrase generator ("correct-horse-battery-staple")
Full step-by-step tutorial with explanation: Beginnersly.com — Password Generator
MIT License — free to use, modify, and share.