8000 GitHub - svenXY/goxkcdpwgen: xkcd style password generator library and cli tool
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

xkcd style password generator library and cli tool

License

Notifications You must be signed in to change notification settings

svenXY/goxkcdpwgen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

goxkcdpwgen

xkcd style password generator library and cli tool

Installation (cli tool)

Compile

go install -v github.com/martinhoefling/goxkcdpwgen 

Package

no package yet :-)

Run

All params

$ goxkcdpwgen -h                                                 
Usage of ./goxkcdpwgen:
-c    Capitalize words
-d string
        Delimiter to separate words (default " ")
-l string
        Use non english language with custom list, currently only de = german is supported (default "en")
-n int
        Number of words to generate a password from (default 4)
-s    Use eff_short instead of eff_long as wordlist
-N count
        Number of passwords to generate

Sample execution

$ goxkcdpwgen -c -d "" -n 5 
VocalistDurableGauntletBluishReputable

Usage as library

Install dependency

go get github.com/martinhoefling/goxkcdpwgen

Use in code

import (
    ...    
	"github.com/martinhoefling/goxkcdpwgen/xkcdpwgen"
)


...    
	g := xkcdpwgen.NewGenerator()
	g.SetNumWords(5)
	g.SetCapitalize(true)
	password := g.GeneratePasswordString()
...

About

xkcd style password generator library and cli tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.7%
  • Makefile 0.3%
0