package
0.0.0-20200513085925-1d97044de574
Repository: https://github.com/ver13/ava.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

CheckNewPassword Run some basic checks on new password strings, based on given options This routine requires at least 4 (four) characters Example requiring only basic minimum length: CheckNewPassword("lalala", "lalala", 10, CheckNewPasswordComplexityLowest) Example requiring number and symbol: CheckNewPassword("lalala", "lalala", 10, CheckNewPasswordComplexityRequireNumber|CheckNewPasswordComplexityRequireSymbol).
No description provided by the author
No description provided by the author
ParsePasswordComplexityRulesType attempts to convert a string to a PasswordComplexityRulesType.
ParsePasswordResultType attempts to convert a string to a PasswordResultType.
RuneHasSymbol returns true if the given rune contains a symbol.

# Constants

PasswordComplexityLowest is a PasswordComplexityRulesType of type PasswordComplexityLowest PasswordComplexityLowest There's no rules besides the minimum length.
PasswordComplexityRequireLetter is a PasswordComplexityRulesType of type PasswordComplexityRequireLetter PasswordComplexityRequireLetter At least one letter is required in order to aprove password.
PasswordComplexityRequireNumber is a PasswordComplexityRulesType of type PasswordComplexityRequireNumber PasswordComplexityRequireNumber At least one number is required in order to aprove password.
PasswordComplexityRequireSpace is a PasswordComplexityRulesType of type PasswordComplexityRequireSpace PasswordComplexityRequireSpace The password must contain at least one space.
PasswordComplexityRequireSymbol is a PasswordComplexityRulesType of type PasswordComplexityRequireSymbol PasswordComplexityRequireSymbol User have to include at least one special character, like # or -.
PasswordComplexityRequireUpperCase is a PasswordComplexityRulesType of type PasswordComplexityRequireUpperCase PasswordComplexityRequireUpperCase At least one uppercase letter is required in order to aprove password.
PasswordResultDivergent is a PasswordResultType of type PasswordResultDivergent PasswordResultDivergent Password is different from confirmation.
PasswordResultOK is a PasswordResultType of type PasswordResultOK PasswordResultOK Means the checking ran alright.
PasswordResultTooShort is a PasswordResultType of type PasswordResultTooShort PasswordResultTooShort Password is too short.
PasswordResultTooSimple is a PasswordResultType of type PasswordResultTooSimple PasswordResultTooSimple Given string doesn't satisfy complexity rules.

# Interfaces

No description provided by the author

# Type aliases

PasswordComplexityRulesType x ENUM( PasswordComplexityLowest = 1 // PasswordComplexityLowest There's no rules besides the minimum length PasswordComplexityRequireLetter = 2 // PasswordComplexityRequireLetter At least one letter is required in order to aprove password PasswordComplexityRequireUpperCase = 4 // PasswordComplexityRequireUpperCase At least one uppercase letter is required in order to aprove password.
PasswordResultType x ENUM( PasswordResultOK // PasswordResultOK Means the checking ran alright PasswordResultDivergent // PasswordResultDivergent Password is different from confirmation PasswordResultTooShort // PasswordResultTooShort Password is too short PasswordResultTooSimple // PasswordResultTooSimple Given string doesn't satisfy complexity rules ).