A flexible Python tool for generating secure, random passwords tailored to user preferences.
- Customizable password length (default: 12 characters)
- Generate multiple passwords in one run
- Optionally include or exclude:
- Uppercase letters
- Lowercase letters
- Digits
- Special symbols
- Input validation to ensure at least one character type is selected
- Python 3 installed on your system.
Run the script from the command line:
python password_generator.py
Follow the interactive prompts to specify:
- Password length
- Number of passwords to generate
- Character types to include
The generated passwords will be displayed immediately.
Random Password Generator
Enter password length (default 12): 16
How many passwords to generate? (default 1): 3
Include the following:
Uppercase letters? (y/n): y
Lowercase letters? (y/n): y
Digits? (y/n): y
Symbols? (y/n): n
Generated Password(s):
1. F9eXvLWcPTBnQdHA
2. JgUzoPmsvQWaLTDZ
3. WNdXHTbJFrAKpzvy
- If no character type is selected, the program will notify and terminate.
- Passwords are generated using Python's built-in random module.