pwgen

Self-hosted password generator for passwords and passphrases with clipboard copy and offline mode

Repository activity
  • Stars89
  • Forks16
  • Open Issues12
License

AGPL-3.0

Languages
  • Python
  • HTML
  • CSS
pwgen screenshot

About pwgen

pwgen is a simple self-hosted web app for generating secure passwords or passphrases with customizable options. It lets users choose random passwords or word-based passphrases and keeps generation on infrastructure they run themselves.

It can include uppercase letters, digits, and special characters, exclude homoglyphs, and generate up to 5 results at once. Passphrases support capitalization, separators, numbers, special characters, and custom word lists from URLs or local files. Generated values can be copied to the clipboard, saved in a browser cookie, and checked against the haveibeenpwned API unless offline mode is enabled.

pwgen runs as a Docker web application and has a demo at pwgen.joonatanh.com. It supports English, Finnish, and French word lists, PWA behavior, environment variable defaults, and a language dropdown toggle. The project is open source under AGPL-3.0.

Key features

  • Generate random passwords or word-based passphrases
  • Clipboard copy for generated values
  • Check against haveibeenpwned API
  • Offline mode disables external password checks
  • Up to 5 results at once via MULTI_GEN=true

Details

First released
2024
Platforms
Web · Docker
Deployment
self-hostable · docker
License
AGPL-3.0
Offline mode
Available
Languages
English · Finnish · French