• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

_generator/H31-Mar-2019-

wordlists/H03-May-2022-

xkcdpwgen/H31-Mar-2019-

.travis.ymlH A D31-Mar-2019119

LICENSEH A D31-Mar-20191.1 KiB

MakefileH A D31-Mar-20191.1 KiB

README.mdH A D31-Mar-20191.3 KiB

xkcdpwgen.goH A D31-Mar-2019968

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