No description
Find a file
2021-09-21 19:58:03 +02:00
.idea Initial checkin 2021-09-19 18:10:12 +02:00
.cirrus.yml Make GoLinter happy 2021-09-21 11:26:48 +02:00
.gitignore Initial commit 2021-09-19 17:58:02 +02:00
breach.go Introducing the breaches API 2021-09-21 19:46:48 +02:00
breach_test.go Make golinter happy 2021-09-21 19:58:03 +02:00
go.mod Initial checkin 2021-09-19 18:10:12 +02:00
hibp.go Introducing the breaches API 2021-09-21 19:46:48 +02:00
hibp_test.go Wrong type in Errorf() 2021-09-21 19:47:17 +02:00
LICENSE Initial commit 2021-09-19 17:58:02 +02:00
password.go Introducing the breaches API 2021-09-21 19:46:48 +02:00
password_test.go Introducing the breaches API 2021-09-21 19:46:48 +02:00
README.md v0.1.1: Complete refactor 2021-09-21 11:21:04 +02:00

go-hibp - Simple go client for the HIBP API

Go Reference Go Report Card Build Status

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")
    }
}