Documentation ¶
Index ¶
- func Beautify()
- func CompositionPwdScore(password string) float64
- func CountTypeElements(input string) map[string]float64
- func CrackTime(password string) float64
- func DifferentCharScore(password string) float64
- func Entropy(password string) float64
- func EntropyScore(password string) float64
- func FindExactly(words []string, password string) bool
- func FindExactlyReversed(words []string, password string) bool
- func GenerateRandom(length int) string
- func GenerateSetString(input string) []rune
- func GetBlake2b256Hash(text string) string
- func GetBlake2b384Hash(text string) string
- func GetBlake2b512Hash(text string) string
- func GetBlake2s256Hash(text string) string
- func GetMD4Hash(text string) string
- func GetMD5Hash(text string) string
- func GetRipemd160Hash(text string) string
- func GetSHA1Hash(text string) string
- func GetSHA224Hash(text string) string
- func GetSHA256Hash(text string) string
- func GetSHA384Hash(text string) string
- func GetSHA512Hash(text string) string
- func Grader(words [][]string, password string) float64
- func HowManyDifferents(password string) int
- func HowManyTypes(password string) int
- func IsThereLowerCase(password string) bool
- func IsThereNumber(password string) bool
- func IsThereSymbol(password string) bool
- func IsThereUpperCase(password string) bool
- func KnownPwdReverseScore(words []string, password string) float64
- func KnownPwdScore(words []string, password string) float64
- func LengthScore(password string) float64
- func ListAllFiles(root string) []string
- func ReadAllFiles(folder string) [][]string
- func ReadInput() []string
- func ReadSingleInput(input string) string
- func ReadWords(fileInput string) []string
- func Reverse(s string) string
- func Round(input string) float64
- func ShowCrackTime(crackTime float64) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Beautify ¶
func Beautify()
Beautify : If the terminal size is enough, print the label PWD-SAFETY.
func CompositionPwdScore ¶
CompositionPwdScore : Scores password's composition
total = 20 There is numbers = 5 There is symbol = 5 There is uppercase = 5 There is lowercase = 5
func CountTypeElements ¶
CountTypeElements : Counts the different types in password
func DifferentCharScore ¶
DifferentCharScore : Scores How many different chars in relation to the length
total = 15 n = (different_chars*total)/total_chars
func EntropyScore ¶
EntropyScore : Scores Entropy's password
total = 35 < 28 bits = 3 28 - 35 bits = 8 36 - 59 bits = 20 60 - 80 bits = 24 81 - 120 bits = 28 120+ bits = 35
func FindExactly ¶
FindExactly : Check if the password is equal to one known password
func FindExactlyReversed ¶
FindExactlyReversed : Check if the password is equal to one known password reversed
func GenerateRandom ¶
GenerateRandom : Generate a strong random password
func GenerateSetString ¶
GenerateSetString : Generates a set of unique characters in the input string
func GetBlake2b256Hash ¶
GetBlake2b256Hash : Return Blake2b256 hash of input
func GetBlake2b384Hash ¶
GetBlake2b384Hash : Return Blake2b384 hash of input
func GetBlake2b512Hash ¶
GetBlake2b512Hash : Return Blake2b512 hash of input
func GetBlake2s256Hash ¶
GetBlake2s256Hash : Return Blake2s256 hash of input
func GetRipemd160Hash ¶
GetRipemd160Hash : Return Ripemd160 hash of input
func GetSHA224Hash ¶
GetSHA224Hash : Return SHA224 hash of input
func GetSHA256Hash ¶
GetSHA256Hash : Return SHA256 hash of input
func GetSHA384Hash ¶
GetSHA384Hash : Return SHA384 hash of input
func GetSHA512Hash ¶
GetSHA512Hash : Return SHA512 hash of input
func HowManyDifferents ¶
HowManyDifferents : Returns the number of differents characters used in password
func HowManyTypes ¶
HowManyTypes : Returns how many different types there are in the password
func IsThereLowerCase ¶
IsThereLowerCase : Checks if there is at least one lowercase character
func IsThereNumber ¶
IsThereNumber : Checks if there is at least one number
func IsThereSymbol ¶
IsThereSymbol : Checks if there is at least one symbol
func IsThereUpperCase ¶
IsThereUpperCase : Checks if there is at least one UPPERCASE character
func KnownPwdReverseScore ¶
KnownPwdReverseScore : Scores known reversed password
total = -8 It's present = -8 There isn't = 0
func KnownPwdScore ¶
KnownPwdScore : Scores known password
total = -18 It's present = -18 There isn't = 0
func LengthScore ¶
LengthScore : Scores password's length
total = 30 length<=7 = 0 length==8 = 8 length==9 = 12 10 <= length <= 15 = 20 16 <= length <= 19 = 25 20 <= length <= 24 = 28 length >=25 = 30
func ListAllFiles ¶
ListAllFiles : It lists all files in a folder
func ReadAllFiles ¶
ReadAllFiles : Read arrays of words from inputted files
func ReadSingleInput ¶
ReadSingleInput : Reading one single input
func ShowCrackTime ¶
ShowCrackTime : Beautify the crack time (from seconds to human readable string )
Types ¶
This section is empty.