pswdgen

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PasswordModeNonInteractive = "interactive"
	PasswordModeInteractive    = "nonInteractive"

	DefaultPasswordLength = 25
)

Variables

This section is empty.

Functions

func Generate

func Generate(config Config) (string, error)

Generate generates a password.

func StrengthByString

func StrengthByString(s string) int

Types

type Config

type Config struct {
	Length   int `toml:"length"`
	Strength int
	Mode     string `toml:"mode"`
}

func NewDefaultConfig

func NewDefaultConfig() Config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL