francescoalemanno/zigpwgen
zigpwgen is for generating secure high-entropy, pronounceable passphrases.
zigpwgen
is a flexible password generator designed to produce passphrases that balance security and pronounceability. It is based on a pattern system where words, tokens, symbols, and digits can be flexibly combined. Built with the Zig programming language, zigpwgen
ensures performance, clarity, and simplicity.
Clone the repository and build with Zig:
git clone https://github.com/francescoalemanno/zigpwgen.git
cd zigpwgen
zig build -Doptimize=ReleaseFast
or download one of the precompiled release binaries.
Usage: zigpwgen [-p <pattern>] [-n <num>] [-e]
Flexible password generator using the EFF long word list for pronounceable words.
Built with Zig for performance and simplicity.
Options:
-p, --pattern string representing the desired structure of the generated passphrases,
defaults to `W-w-w-ds` (w = word; W = capital word; s = symbol; d = digit).
-n, --num number of passphrases to generate,
defaults to 5.
-e, --entropy print entropy in base log2 along with the generated password,
defaults to false.
-h, --help display usage information
-v, --version display version information
-- Example:
> zigpwgen -p w.w.w.w -n 3
- output:
jumnetion.pegmelf.dinhosure.vewwene
mobjering.pordipe.noclarita.hummern
jegmue.konhume.warpost.sotmative
-- Example:
> zigpwgen -p W-W-dd -n 4
- output:
Tatzight-Wustoil-54
Doggiarch-Vuntoses-86
Botbaw-Cixtosive-44
Borkandle-Vegber-98
-----------------------------------------------------------------------------------------
author: Francesco Alemanno <[email protected]>
repo: https://github.com/francescoalemanno/zigpwgen
MIT License
Copyright (c) 2024 Francesco Alemanno