Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrPassphraseEmpty indicates passphrase input was less than 1 character ErrPassphraseEmpty = errors.New("Passphrase Input Empty") )
Functions ¶
This section is empty.
Types ¶
type Pwd ¶
type Pwd struct {
Pwnd bool // Pwnd returns true if passphrase is found pwned via API
Pwd string // Pwd returns the passphrase string passed to the function
TmPwnd string // TmPwnd returns the number of times the passphrase was found in the database
}
Pwd is returned as a struct pointer when calling CheckForPwnage
func CheckForPwnage ¶
CheckForPwnage takes passphrase as string, sends request to API and returns Pwd and error
Click to show internal directories.
Click to hide internal directories.