No description
Find a file
2022-10-01 16:06:56 +02:00
.github Update codecov_testonly.yml 2022-05-07 15:05:09 +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 Fixed mixed pointer/copy assignment in ApiDate type 2022-10-01 16:05:50 +02:00
breach_test.go Better test coverage for breaches API 2022-10-01 16:06:56 +02:00
codecov.yml Update codecov.yml 2022-05-07 14:59:31 +02:00
go.mod Initial checkin 2021-09-19 18:10:12 +02:00
hibp.go v1.0.2: More tests and better README.md. 2022-05-08 12:44:20 +02:00
hibp_test.go Adding RateLimitSleep() to all tests 2022-05-07 14:55:33 +02:00
LICENSE Initial commit 2021-09-19 17:58:02 +02:00
password.go #14: Skip padding results in the API response, which can be identified by having a zero count 2022-06-09 16:21:10 +02:00
password_test.go Fixed output results in PwnedPassApi tests 2022-10-01 15:04:06 +02:00
paste.go Road to v1.0.0: Added Pastes API 2021-09-22 16:20:54 +02:00
paste_test.go Moved all code examples into the test files using GoDoc syntax 2022-05-08 12:02:58 +02:00
README.md Update README.md 2022-05-09 09:14:11 +02:00
sonar-project.properties Update sonar-project.properties 2022-04-13 09:42:37 +02:00

go-hibp - Simple Go binding to the "Have I Been Pwned" API

GoDoc Go Report Card Build Status codecov Mentioned in Awesome Go buy ma a coffee

This Go library provides simple bindings to the excellent "Have I Been Pwned" (HIBP) API by Troy Hunt. It implements all 3 APIs that are provided by HIBP (Breaches, Pastes, Passwords). API key support for the private API endpoints are supported as well. go-hibp follows idiomatic Go style and best practice. It's only dependency is the Go Standard Library.

Usage

The library is fully documented using the execellent GoDoc functionality. Check out the GoDocs Reference for details on how to implement access to any of the 3 APIs with this package. You will also find GoDoc code examples there for each of those APIs.