A simple, user-friendly password generator built with Python and Tkinter. This app creates secure random passwords using cryptographically strong randomness from the secrets module. Users can customize which character types to include and easily copy the generated password to their clipboard.
- GUI built with Tkinter
- Adjustable password length (8 to 32 characters)
- Options to include:
- Lowercase letters
- Uppercase letters
- Digits
- Special characters
- Secure random generation using secrets.choice
- One-click copy to clipboard
- Input validation and helpful warnings
- Python 3.8+
- Tkinter
- Clone or download the repository.
- Run the script using Python:
python password_generator.py- The application window will launch. Choose your options and click Generate Password.
password-generator/
│
├── password_generator.py # Main application script
├── README.md # Documentation
└── LICENSE # MIT license- User selects the desired password length and character types.
- The app builds a character pool based on these selections.
- A password is generated using
secrets.choicefor strong randomness. - The result is displayed in a read-only field.
- Clicking Copy to Clipboard places the generated password in the system clipboard.
- At least one character type must be selected.
- Password length must be a valid integer greater than zero.
- This tool focuses on secure generation, but safe password storage is still up to the user.
