Documentation ¶
Index ¶
Constants ¶
View Source
const Charset = Upper + Lower + Symbols + Digits
Charset for password
View Source
const ConsonantsLower = "bcdfghjklmnpqrstvwxz"
ConsonantsLower - lower consonants in language
View Source
const ConsonantsUpper = "BCDFGHJKLMNPQRSTVWXZ"
ConsonantsUpper - upper consonants in language
View Source
const Digits = "1234567890"
Digits - all digits in our Charset
View Source
const Lower = "aeiouybcdfghjklmnpqrstvwxz"
Lower - lower letters in language
View Source
const Symbols = "~!@#$%^&*()_{}<>"
Symbols - different symbols in our Charset. Contains most frequent symbols.
View Source
const Upper = "AEIOUYBCDFGHJKLMNPQRSTVWXZ"
Upper - upper letters in language
View Source
const VowelsLower = "aeiouy"
VowelsLower - lower vowels in language
View Source
const VowelsUpper = "AEIOUY"
VowelsUpper - upper vowels in language
Variables ¶
SeededRand - init seed from time
Functions ¶
func CheckStrength ¶
CheckStrength - test our password complexity. TRUE if contains UPPERCASE & lowercase & special symbols. Else => FALSE
func StringWithCharset ¶
StringWithCharset - get length(int) & charset(str) => return generated random password string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.