Documentation
¶
Index ¶
Constants ¶
View Source
const ( PassVowels PassCharsKinds = 1 PassConsonants = 2 PassNumerals = 4 PassSigns = 8 PassAbc = 3 // PassVowels + PassConsonants PassAbcNumerals = 7 // PassVowels + PassConsonants + PassNumerals PassAll = 15 // PassVowels + PassConsonants + PassNumerals + PassSigns )
Variables ¶
This section is empty.
Functions ¶
func GenDigitCode ¶
func GenPassword ¶
func GenPassword(length int, charsKinds PassCharsKinds) string
func GenTokenBase64 ¶
func GenTokenHex ¶
Types ¶
type PassCharsKinds ¶
type PassCharsKinds uint8
type PassStrength ¶
type PassStrength uint8
const ( PassStrengthNotRated PassStrength = iota // not rated PassStrengthWeak // weak PassStrengthMedium // middle PassStrengthStrong // strong PassStrengthBest // the best )
func PasswordStrength ¶
func PasswordStrength(value string) PassStrength
func (PassStrength) String ¶
func (e PassStrength) String() string
Click to show internal directories.
Click to hide internal directories.