Go to file
2024-04-28 19:27:31 +02:00
include add dutch diceware wordlist 2024-04-28 19:22:42 +02:00
.gitignore setup cmake 2024-04-28 19:04:57 +02:00
CMakeLists.txt setup cmake 2024-04-28 19:04:57 +02:00
compile_commands.json setup cmake 2024-04-28 19:04:57 +02:00
mingw-toolchain.cmake setup cmake 2024-04-28 19:04:57 +02:00
passgen.cpp add dutch diceware wordlist 2024-04-28 19:22:42 +02:00
README.md update README 2024-04-28 19:27:31 +02:00

passgen

passgen generates passphrases based on wordlists. Usage:

Usage: passgen [options]

Options:
  -h, --help              Display this help message and exit
  -s, --short             Use the short EFF wordlist (dfault)
  -l, --large             Use the large EFF wordlist
  --camelcase, -cc        Generate passphrase in CamelCase format			
  -wl <path>, --wordlist <path>
                          Use a custom wordlist file located at <path>
  -n <count>, -wc <count>, --wordcount <count>
                          Amount of words to use for passphrase, default = 5
  --separator <seperator> Specify a character to use as a separator between words, default = `-`

Description:
  Generate passphrases based on wordlists.

Examples:
  passgen -h
  passgen --short 4
  passgen -wl /path/to/custom_wordlist.txt --wordcount 4

example output:

retrace-choice-litter-dreamt-zipping

This project uses the EFF's Wordlists for Random Passphrases and PCG random to pick random words

Compiling:
Compile for Linux:

mkdir build-linux && cd build-linux && cmake .. && make

Compile for Windows:

mkdir build-windows && cd build-windows && cmake -DCMAKE_TOOLCHAIN_FILE=../mingw-toolchain.cmake .. && make

Wordlists are embedded using the following command:

xxd -i <path> > include/<path>.txt.hpp

Wordlists: