Documentation ¶
Overview ¶
Package entropy provides a means to compute entropy of a given random string by analyzing both the charsets used and its length.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Charsets = map[string][]rune{ "lowercase": []rune(lowercase), "uppercase": []rune(uppercase), "numbers": []rune(numbers), "symbols": []rune(symbols), "latin1": []rune(latin1), "latinExtendedA": []rune(latinExtendedA), "latinExtendedB": []rune(latinExtendedB), "ipaExtensions": []rune(ipaExtensions), }
Charsets is a dictionary of known Unicode code blocks to use when generating passwords. All runes are printable and single-width.
View Source
var (
ErrPasswordInvalid = errors.New("invalid password")
)
A valid password is impossible with the given constraints.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.