goxkcdpwgen

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2022 License: MIT Imports: 3 Imported by: 0

README

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()
...

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳