No description
Find a file
Winni Neessen 1bff71201d
Merge pull request #33 from freman/main
Add missing API calls for subscribeddomains and breacheddomain
2024-04-11 10:25:52 +02:00
.github Update Go versions in GitHub Actions workflows 2024-03-14 22:23:07 +01:00
md4 #27: Implement NTLM hash support for PwnedPassAPI 2023-02-09 17:07:20 +01:00
.cirrus.yml Make GoLinter happy 2021-09-21 11:26:48 +02:00
.gitignore Add .idea to .gitignore file 2024-03-14 22:15:00 +01:00
.golangci.toml Implement a golangci-lint workflow and the accordingly GH action 2022-10-29 15:32:12 +02:00
breach.go Add missing API 2024-04-03 15:31:21 +10:00
breach_test.go Add some testing 2024-04-11 08:54:28 +10: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 #27: Implement NTLM hash support for PwnedPassAPI 2023-02-09 17:07:20 +01:00
hibp_test.go #27: Implement NTLM hash support for PwnedPassAPI 2023-02-09 17:07:20 +01:00
LICENSE Initial commit 2021-09-19 17:58:02 +02:00
password.go Add sanity check for split strings in password handling 2024-03-14 22:14:48 +01:00
password_test.go Update password hash count in test output 2024-03-14 22:19:50 +01:00
paste.go Overhauling error handling of the different APIs as part of #24 2022-12-22 11:55:56 +01:00
paste_test.go Fix missing HTTP response return in PastedAccount method. 2022-12-22 09:57:57 +01: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.