Documentation
¶
Index ¶
Constants ¶
View Source
const ( LowercaseLetters = "abcdefghijklmnopqrstuvwxyz" UppercaseLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" Digits = "0123456789" Symbols = "~!@#$%^&*()_+`-={}|[]\\:\"<>?,./" )
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(cmp PasswordComposition) (string, error)
Generate password consisting of given number of lowercase letters, uppercase letters, digits, and "symbol" characters.
Types ¶
type PasswordComposition ¶
type PasswordComposition struct {
NumLowercase, NumUppercase, NumDigits, NumSymbols uint
}
Click to show internal directories.
Click to hide internal directories.