No description
Find a file
Winni Neessen 05ea767ee1
#14: Add ListHashes*() methods to get access to all returned hashes
- This method replaces the previously private apiCall() method
- Added `ListHashesSHA1()` as well as `ListHashesPassword()` to keep consistency in the naming schema
- Added length checks for SHA1() methods
- Added length check for Prefix() method
2022-06-08 17:26:41 +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 More idiomatic naming for the rate limit handling 2021-09-22 15:25:27 +02:00
breach_test.go Make GoLinter happy 2022-05-08 12:09:39 +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: Add ListHashes*() methods to get access to all returned hashes 2022-06-08 17:26:41 +02:00
password_test.go #14: Add ListHashes*() methods to get access to all returned hashes 2022-06-08 17:26:41 +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.