Skip to content

ryanpz/genpass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

NAME
    genpass - generate a random passphrase

SYNOPSIS
    genpass [OPTIONS...]

OPTIONS
    -n NUM_WORDS
        Output a passphrase that is `NUM_WORDS` words long (max
        255, defaults to 6).

    -h
        Print the help output for genpass.

Building

Requirements

  • zig
  • make

Make Targets

  • build: build the release version
  • run: build and run the debug version
  • test: run all tests

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. rebuild with make build or make run

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

License

0BSD

About

A simple passphrase generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published