A simple Python password generator that creates strong, varied passwords with optional exclusion of ambiguous characters.
- Generates secure passwords using Python's
secretsmodule - Enforces at least one letter, one digit, and one punctuation character
- Supports optional exclusion of ambiguous punctuation such as
$,,,', and" - Includes a small command-line interface for easy use
Run the script interactively:
python new-password.pyOr supply a length on the command line:
python new-password.py -l 12Optional flag:
python new-password.py -l 12 -p- Python 3.9+
MIT-style — feel free to adapt for your needs.