A simple Python program that generates secure, customizable passwords with letters, numbers, and symbols.
- Choose how many letters, numbers, and symbols to include
- Randomly shuffles characters for added security
- Password strength indicator (weak / medium / strong)
- Optionally copy the password to your clipboard (requires
pyperclip)
- The program asks the user for:
- Number of letters
- Number of numbers
- Number of symbols
- It generates a random password using Python's
randomandstringmodules. - The password is shuffled and displayed with a strength rating.
Run the program using Python 3:
python password_generator.pyExample inputs
How many letters would you like in your password? 4 How many numbers would you like in your password? 3 How many symbols would you like in your password? 2
Example output
Your password is: a9#L6R@s Password Length is 8 characters. Password strength is medium !!!
Optional:
Install the pyperclip library if you want to copy passwords automatically:
pip install pyperclipPull requests are welcome! Feel free to open an issue if you have suggestions or bugs to report.