checker

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: CC-BY-4.0, MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pwned

func Pwned(pwd string) (bool, string, error)

Pwned calls the pwnedpasswords API to determine if a supplied password is in the database of leaked passwords (true). The supplied password is NOT being sent to the pwnedpasswords API; instead only the SHA1 prefix (5 first hash char) is sent, this ensures that the pwnedpasswords API doesn't know the password that is being sent (it is protected in k-anonymity guarantee). Refer to https://haveibeenpwned.com/API/v3#PwnedPasswords for more details.

Types

This section is empty.

Jump to

Keyboard shortcuts

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