mirror of
https://github.com/wneessen/go-hibp.git
synced 2024-11-22 21:00:51 +01:00
No description
.idea | ||
.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")
}
}