How avicennarl/random-password-generator works
pwdgen is an offline password and passphrase generator with two independent user-facing implementations: a Python command-line tool and a static browser app. The CLI parses options, dispatches to password or passphrase generation, and formats results with entropy and strength metadata. The browser app handles configuration, generation, strength display, and copying locally. Both use cryptographic randomness; the Python passphrase path loads the bundled BIP39 list. Web UI internals are combined because they live in one sampled file; unsampled page structure is not mapped.
Main entry points: cli.py CLI Options & Output · passphrase.py Passphrase Generation · words.py Wordlist Loader · app.js Web Generation & UI
Components 9
Python CLI
- CLI Options & Output
src/pwdgen/cli.py
Python Generation
- Password Generation
src/pwdgen/core.py - Passphrase Generation
src/pwdgen/passphrase.py - Wordlist Loader
src/pwdgen/words.py - BIP39 Wordlist
src/pwdgen/data/words.txt
Browser App
- Web Generation & UI
web/app.js - Browser Wordlist
web/words.js
Other components
- Terminal User
- Browser User
Connections 7
- Terminal User → CLI Options & Output: sets options
README.md - CLI Options & Output → Password Generation: generates passwords
src/pwdgen/cli.py - CLI Options & Output → Passphrase Generation: generates passphrases
src/pwdgen/cli.py - Passphrase Generation → Wordlist Loader: loads words
src/pwdgen/passphrase.py - Wordlist Loader → BIP39 Wordlist: reads list
src/pwdgen/words.py - Browser User → Web Generation & UI: configures and copies
README.md - Web Generation & UI → Browser Wordlist: chooses words from
web/app.js