A simple Python program that generates secure random passwords based on user-selected criteria such as length, letters, digits, and symbols.
This project is designed to practice Python fundamentals, user input handling, and working with built-in libraries like random and string.
This password generator allows users to create a customized password by selecting:
- Password length
- Whether to include letters
- Whether to include digits
- Whether to include symbols
The program validates user input and ensures a password can always be generated safely.
- Generate random passwords of custom length
- Choose character types (letters, numbers, symbols)
- Input validation
- Beginner-friendly Python implementation
- CLI-based interaction
-
Python 3
-
Built-in libraries:
randomstring
password-generator/
β
βββ password_generator.py
βββ README.md
git clone https://github.com/your-username/password-generator.git
cd password-generator
python password_generator.py
Enter password length: 10
Include letters? (y/n): y
Include digits? (y/n): y
Include symbols? (y/n): n
Generated Password: aT9kLm2QpR
This project helps practice:
- Python input/output
- Conditional logic
- Random value generation
- String manipulation
- Basic CLI program structure
- Add password strength indicator
- Save generated passwords to file
- Add copy-to-clipboard feature
Anukalp Tejaswi