mirror of
https://github.com/wneessen/go-hibp.git
synced 2024-11-25 14:20:49 +01:00
No description
.idea | ||
.cirrus.yml | ||
.gitignore | ||
go.mod | ||
hibp.go | ||
hibp_test.go | ||
LICENSE | ||
password.go | ||
password_test.go | ||
README.md |
go-hibp - Simple go client for the HIBP API
Usage
Pwned Passwords API
package main
import (
"fmt"
"github.com/wneessen/go-hibp"
)
func main() {
hc := New()
m, _, err := hc.PwnedPassword.CheckPassword("test123")
if err != nil {
panic(err)
}
if m != nil && m.Count != 0 {
fmt.Println("Your password was found in the pwned passwords DB")
}
}