mirror of
https://github.com/wneessen/go-hibp.git
synced 2024-11-12 16:52:52 +01:00
No description
|
||
---|---|---|
.idea | ||
.cirrus.yml | ||
.gitignore | ||
breach.go | ||
breach_test.go | ||
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")
}
}