Documentation
¶
Index ¶
Constants ¶
View Source
const ( LevelUndefined Level = iota // LevelEasy is the options for a weak password. LevelEasy = 1 // LevelMid is the options for a mid-strength password. LevelMid = 2 // LevelHard is the options for a strong password. LevelHard = 3 )
Variables ¶
This section is empty.
Functions ¶
func GenerateWithOptions ¶
Types ¶
type Options ¶
type Options struct {
// Length implies the Length of password, inclusive range is [1, 64].
Length int
// NumDigits implies the number of digits contained in a password.
NumDigits int
// NumSymbols implies the number of symbols contained in a password.
NumSymbols int
// Uppercase implies if password should contain upper case letters.
Uppercase bool
// NoRepeat implies if password should not contain repeated characters.
NoRepeat bool
}
Click to show internal directories.
Click to hide internal directories.