Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyPassword = errors.New("password cannot be empty")
ErrEmptyPassword is an empty password error
Functions ¶
func WithContext ¶
WithContext will set the context.Context of a Client
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a HaveIBeenPwned client
func (*Client) CheckPassword ¶
CheckPassword returns the number of times a password has been compromised Adding padding will make requests more secure, however is also slower because artificial responses will be added to the response For more information, see https://www.troyhunt.com/enhancing-pwned-passwords-privacy-with-padding/
Click to show internal directories.
Click to hide internal directories.