api

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package api implements an HIBP API client.

Example
matches, err := Lookup("sha1sum of secret")
if err != nil {
	panic(err)
}
fmt.Printf("Number of matches: %d", matches)
Output:

Index

Examples

Constants

This section is empty.

Variables

View Source
var URL = "https://api.pwnedpasswords.com"

URL is the HIBPv2 API URL

Functions

func Lookup

func Lookup(shaSum string) (uint64, error)

Lookup performs a lookup against the HIBP v2 API

Types

This section is empty.

Jump to

Keyboard shortcuts

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