Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
_generator/ | H | 31-Mar-2019 | - | |||
wordlists/ | H | 03-May-2022 | - | |||
xkcdpwgen/ | H | 31-Mar-2019 | - | |||
.travis.yml | H A D | 31-Mar-2019 | 119 | |||
LICENSE | H A D | 31-Mar-2019 | 1.1 KiB | |||
Makefile | H A D | 31-Mar-2019 | 1.1 KiB | |||
README.md | H A D | 31-Mar-2019 | 1.3 KiB | |||
xkcdpwgen.go | H A D | 31-Mar-2019 | 968 |
README.md
1[![Build Status](https://travis-ci.org/martinhoefling/goxkcdpwgen.svg?branch=master)](https://travis-ci.org/martinhoefling/goxkcdpwgen) 2 3# goxkcdpwgen 4 5xkcd style password generator library and cli tool 6 7## Installation (cli tool) 8 9### Compile 10 11 go install -v github.com/martinhoefling/goxkcdpwgen 12 13### Package 14 15no package yet :-) 16 17### Run 18 19All params 20 21 $ goxkcdpwgen -h 22 Usage of ./goxkcdpwgen: 23 -c Capitalize words 24 -d string 25 Delimiter to separate words (default " ") 26 -l string 27 Use non english language with custom list, currently only de = german is supported (default "en") 28 -n int 29 Number of words to generate a password from (default 4) 30 -s Use eff_short instead of eff_long as wordlist 31 -N count 32 Number of passwords to generate 33 34Sample execution 35 36 $ goxkcdpwgen -c -d "" -n 5 37 VocalistDurableGauntletBluishReputable 38 39 40## Usage as library 41 42Install dependency 43 44 go get github.com/martinhoefling/goxkcdpwgen 45 46Use in code 47 48 import ( 49 ... 50 "github.com/martinhoefling/goxkcdpwgen/xkcdpwgen" 51 ) 52 53 54 ... 55 g := xkcdpwgen.NewGenerator() 56 g.SetNumWords(5) 57 g.SetCapitalize(true) 58 password := g.GeneratePasswordString() 59 ... 60