This repository contains two secure password generators written in Python:
-
CLI Version (
cli/password_cli.py)
A simple, interactive commandβline tool for generating random passwords. -
GUI Version (
gui/password_gui.py)
A modern PyQt5 desktop application with a sleek interface, exclusion options, and clipboard support.
- Cryptographically secure randomness (
secretsmodule) - Customizable length (8β64 characters)
- Include/exclude:
- Uppercase letters (AβZ)
- Lowercase letters (aβz)
- Digits (0β9)
- Symbols (!@#$...)
- Exclude specific characters (GUI only)
- Oneβclick copy to clipboard (GUI only)
- Password strength validation (length vs. rules)
password-generator/
βββ .venv
βββ README.md
βββ requirements.txt
βββ cli/
β βββ password_cli.py
βββ gui/
βββ password_gui.py
CLI Version Run the commandβline tool:
python cli/password_cli.py- Youβll be prompted to:
- Enter password length (β₯ 8)
- Choose whether to include uppercase, lowercase, digits, and symbols
- Generate multiple variations until satisfied
GUI Version Run the PyQt5 application:
python gui/password_gui.pyFeatures:
- Spinbox to set password length
- Checkboxes for character types
- Exclusion field (e.g., exclude O0l1)
- Generate button with styled output
- Copy to clipboard button