Presets

The patterns that are built into Passgen, and how to define your own.

A preset is a named pattern. Use one with --preset:

$ passgen --preset proquint64
huzat-jorub-didig-mihoj

Built-in presets

PresetExampleEntropy
apple1RfO-wTH-eFD-5nK71.45 bits
apple2L2wjZr-vEBpjz-v2J5br107.18 bits
firefoxQ7eE3ib18bkQtOI89.31 bits
edgeaNHdHeaDZdG0AXW82.38 bits
uuide16aa85c-b402-4cca-80e0-f112d8a51dbe122.00 bits
proquint16pajus16.00 bits
proquint32hupak-bukun32.00 bits
proquint48hasut-zoraz-susuk48.00 bits
proquint64huzat-jorub-didig-mihoj64.00 bits
proquint80pokul-sorat-virah-dorof-dojoz80.00 bits
proquint96banid-zosas-hisor-mipok-lubaj-tudos96.00 bits
proquint112rotat-lagun-zagaz-misoh-risuh-balib-dafug112.00 bits
proquint128darut-jogit-sohog-hohih-ravim-vuguj-mofut-bafoh128.00 bits

The apple1, apple2, firefox and edge presets generate passwords in the style suggested by the respective browsers. uuid generates a random version 4 UUID.

The proquint presets generate proquints: pronounceable five-letter groups of alternating consonants and vowels, each carrying exactly 16 bits. The number in the name of the preset is its entropy.

To see the pattern behind every preset, run passgen --list.

Defining your own

To define a preset for a single run, use --define-preset NAME:PATTERN:

$ passgen -P 'mine:[a-z]{4}-[0-9]{4}' -p mine
jfdb-2687

To keep a preset around, add it to the [presets] table of your configuration file at ~/.config/passgen/config.toml:

[presets]
mine = '[a-z]{4}-[0-9]{4}'

Write the pattern in single quotes, so that backslashes in it are left alone.

A preset that you define replaces a built-in preset with the same name. Setting a preset to false removes it. See Configuration for more on the configuration file.