Documentation ¶
Index ¶
- Constants
- func IsCard(cc string) bool
- func PasswordFalse(password string) (confidence int, ignore bool)
- func PasswordWeak(password string) (weak bool)
- func Shannon(s string) float64
- func SkipAccountTokenPassword(password string) bool
- func SkipPasswordWithHTMLEntities(password string) bool
- func SkipPasswordWithUnicode(password string) bool
- func SkipSameKeyValue(matchValue string, lineValue string) (result bool)
- func ValidSSN(ssn string) bool
Constants ¶
const ( //WeakPswdCaption is the caption used for password values we identify as weak WeakPswdCaption string = "Potentially Weak Password" )
Variables ¶
This section is empty.
Functions ¶
func PasswordFalse ¶
PasswordFalse Make sure we don't report strings as passwords if they contain indicators that it's a variable assignment, or some other disqualifier based on line context
func PasswordWeak ¶
PasswordWeak If the password doesn't meet minimum requirements, call it weak
func SkipAccountTokenPassword ¶
To report account_token as credit card, need to skip for password
func SkipPasswordWithHTMLEntities ¶
SkipPasswordWithHTMLEntities returns true if the password value contains a HTML entities. UseCase: Html entities are used as contents in localized files. ex - "Lösenord" is "Lösenord"
func SkipPasswordWithUnicode ¶
SkipPasswordWithUnicode returns true if the password value contains a non ASCII character. UseCase: Localized content contains unicode char for different languages which cannot be passwords in real world.
func SkipSameKeyValue ¶
SkipSameKeyValue reads the matched value from hit object to compare if the key and value are same. UseCase: In config/properties files where key/value pair are used
Types ¶
This section is empty.