Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 996 Bytes

README.md

File metadata and controls

37 lines (22 loc) · 996 Bytes

genpass

genpass is a command-line utility that generates a random passphrase.

Usage

Running genpass outputs a passphrase consisting of six capitalized words suffixed with a single digit, separated by a single hyphen [-].

Example: Hippopotamus0-Highlight2-Brainstorm9-Skeleton0-Extend7-Gallery3

Building

Requirements

  • zig
  • make

Make Targets

  • build: build the release version
  • run: build run the debug version
  • test: run all tests
  • codegen-wordlist: generate zig code representing wordlist.txt (see below)

Configuring the Word List

To configure the list of words genpass pulls from:

  1. replace the contents of wordlist.txt with your list of newline-separated words
  2. run make codegen-wordlist
  3. rebuild with make build or make run

Note: codegen-wordlist embeds the word list into the executable, so wordlist.txt isn't required for the compiled program to run.

License

0BSD