Documentation ¶
Index ¶
Constants ¶
View Source
const ( DIGITS = "23456789" LETTERS = "abcdefghjkmnpqrstuvwxyz" UPPERS = "ABCDEFGHJKMNPRSTUVWXYZ" PUNC = "()~@#$%^&*-+={}[]:;<>,.?/" ALL_DIGITS = "0123456789" ALL_LETTERS = "abcdefghijklmnopqrstuvwxyz" ALL_UPPERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ALL_PUNC = "~`!@#$%^&*()-_=+[]{}|:';\",./<>?" )
Variables ¶
Functions ¶
func MeetComplxity ¶
func RandomPassword2 ¶
Types ¶
type PasswordStrength ¶
func AnalyzePasswordStrenth ¶
func AnalyzePasswordStrenth(passwd string) PasswordStrength
func (PasswordStrength) Len ¶
func (ps PasswordStrength) Len() int
func (PasswordStrength) MeetComplexity ¶
func (ps PasswordStrength) MeetComplexity() bool
Click to show internal directories.
Click to hide internal directories.