Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenPassword ¶
func GenPassword(length int, charsKinds PassCharsKinds) string
GenPassword - comment func.
func GenTokenHexWithDelimiter ¶
GenTokenHexWithDelimiter - comment func.
Types ¶
type PassCharsKinds ¶
type PassCharsKinds uint8
PassCharsKinds - вид символов используемых в пароле.
const ( PassVowels PassCharsKinds = 1 // PassVowels - гласные буквы PassConsonants PassCharsKinds = 2 // PassConsonants - согласные буквы PassNumerals PassCharsKinds = 4 // PassNumerals - цифры PassSigns PassCharsKinds = 8 // PassSigns - знаки PassAbc PassCharsKinds = 3 // PassAbc = PassVowels + PassConsonants PassAbcNumerals PassCharsKinds = 7 // PassAbcNumerals = PassVowels + PassConsonants + PassNumerals PassAll PassCharsKinds = 15 // PassAll = PassVowels + PassConsonants + PassNumerals + PassSigns )
type PassStrength ¶
type PassStrength uint8
PassStrength - надёжность пароля.
const ( PassStrengthNotRated PassStrength = iota // PassStrengthNotRated - пароль без оценки PassStrengthWeak // PassStrengthWeak - слабый пароль PassStrengthMedium // PassStrengthMedium - средний пароль PassStrengthStrong // PassStrengthStrong - надёжный пароль PassStrengthBest // PassStrengthBest - самый надёжный пароль )
func PasswordStrength ¶
func PasswordStrength(value string) PassStrength
PasswordStrength - comment func.
Click to show internal directories.
Click to hide internal directories.