passgen package icon
xfbs/passgen

wasi

Public
wasmer run xfbs/passgen

Passgen CI Pipelines Documentation

Passgen is a tool to generate passwords from a regex-like format string.

Usage

Passgen usage

Examples

Create 12-digit alphanumeric password.

$ passgen "[a-zA-Z0-9]{12}"
DnJ4bOIGmZbj

Create something that looks like an email address.

$ passgen '[a-z0-9.]{3,10}@[a-z]{3,10}.(com|net|org)'
njd0xh@gbnjzlkij.com

Create an password consisting of three pronounceable (but randomly generated) words.

$ passgen --wordlist english:/usr/share/dict/british-english '\p[english]{9,12}(-\p[english]{9,12}){2}'
arapurity-readygoauce-nathundly

Building

In general, if you have all dependencies installed, doing the following should result in a working binary.

$ cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
$ cmake --build build
$ cmake --install build

See the BUILDING.md for more information about building the project.

Prior art

  • pwgen.
  • apg: generates random passwords, can either be generated such that they are pronounceable, or taken from a predefined list of symbols.
  • z-tokens, has fixed presets.
  • rpass

License

MIT, see License file.

Package description for xfbs/passgen


Github

Making software universally accessible