pwgen

package
v0.0.0-...-0761d62 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Lower contains all possible lower case characters that can appear in a password.
	Lower = "abcdefghijklmnopqrstuvwxyz"
	// Digit contains all possible digit characters that can appear in a password.
	Digit = "0123456789"
	// Symbol contains all possible symbol characters that can appear in a password.
	Symbol = "!()-.?[]_`~;:@#$%^&*+="
	// Upper contains all possible upper case characters that can appear in a password.
	Upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
)

Variables

This section is empty.

Functions

func GeneratePrescriptivePattern

func GeneratePrescriptivePattern(minLength int, isDigits bool, isSymbols bool, isUpper bool) (string, error)

GeneratePrescriptivePattern generates a new prescriptive password.

Types

This section is empty.

Jump to

Keyboard shortcuts

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