haveibeenpwned

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct{}

API represents the HaveIBeenPwned.com api, and manages all remote calls to this API to check for passwords that have appeared in previous data breaches.

func (*API) PasswordRuleDescription

func (api *API) PasswordRuleDescription(language string) string

PasswordRuleDescription returns a localized, human-friendly description of the password rule.

func (*API) ValidatePassword

func (api *API) ValidatePassword(password string, language string) (OK bool, message string)

ValidatePassword verifies that a password matches a rule, or returns a localized, human-friendly error message explaining the problem.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL