Documentation ¶
Overview ¶
Package pwned A package to determine if a given password has been "pwned", meaning the password has been compromised and may be used in a credential stuffing type attack. This package makes use of the "pwned passwords" feature of "Have I Been Pwned" https://haveibeenpwned.com/Passwords, which was created by Troy Hunt.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPwnedAsync ¶
IsPwnedAsync will asynchronously check if the provided password has been pwned. Calls `cb` with the result when finished.
Types ¶
type Result ¶
type Result struct { // Pwned has the password been seen at least once. A value of false doesn't mean the password is any good though. Pwned bool // TimesObserved the number of times this password has been seen by the pwned password service. TimesObserved uint64 }
Result describes a result from the Pwned Password service.
Click to show internal directories.
Click to hide internal directories.