Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IS_ALPHANUMERIC = regexp.MustCompile("[A-Za-z0-9]+") HAS_UPPERCASE = regexp.MustCompile("[A-Z]{1,5}") HAS_LOWERCASE = regexp.MustCompile("[a-z]{1,5}") HAS_NUMERICS = regexp.MustCompile("[0-9]{1,5}") )
Functions ¶
func GetCandidatePwd ¶
GetCandidatePwd computes a password string based on the passphrase, hostname, username, a generation number, and an iteration number
func PwdIsValid ¶
PwdIsValid checks the string created by getCandidatePwd and returns a boolean depending on whether or not it meets the criteria: the first pwdLen characters are all alphanumeric, and there is at least one (but no more than 5) uppercase, lowercase and numeric characters
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.