Skip to content

Releases: wneessen/go-hibp

v1.0.7: subscribeddomains/breacheddomain API and bug fixes

07 May 16:26
1bff712
Compare
Choose a tag to compare

This release adds access to the breacheddomain/breacheddomain API endpoints and fixes a potential out of index access.

What's Changed

  • Improved test coverage by @wneessen in #30
  • Fix possible out of index access by @wneessen in #32
  • Add missing API calls for breacheddomain and breacheddomain by @freman in #33

New Contributors

Thanks

Thanks to @KenjiTakahashi for reporting the out of index access error via #34

Full Changelog: v1.0.6...v1.0.7

v1.0.6: NTLM hash support

09 Feb 16:19
2e13557
Compare
Choose a tag to compare

This release introduces support for NTLM hashes in the PwnedPassAPI as announced by Troy Hunt.

To be able to generate NTLM hashes, we needed the ability to calculate MD4 hashes, as NTLM basically is calculated like this: MD4(UTF-16LE(pw)). For this we ported the official golang.org/x/crypto/md4 package, so we can still claim that the module "only depends on Go stdlib".

A new Client option has been introduced: WithPwnedNTLMHash. If the client is initalized with this option, all generic methods (ListHashesPassword and CheckPassword) will operate on NTLM hashes.

Additionally, there are now equivalent methods for checking passwords and listing hashes for NTLM: CheckNTLM and ListHashesNTLM

What's Changed

Full Changelog: v1.0.5...v1.0.6

v1.0.5: Better error handling

22 Dec 15:07
2b0b51a
Compare
Choose a tag to compare

This releases overhauls the error handling of the different APIs. Aside of fixing #22, in this release we reworked the general error handling. Errors are no defined via errors.New() and therefore can be checked via errors.Is() accordingly. General code cleanup was also performed. Check the PRs for all details.

What's Changed

  • Fix missing HTTP response return in PastedAccount method. by @wneessen in #23
  • Fix/24 verify and overhaul the error handling of the different apis by @wneessen in #25

Thanks to @chandru89new for finding the error and raising the error issue.

Full Changelog: v1.0.4...v1.0.5

[BREAKING CHANGE] v1.0.4: Code cleanup with golangci-lint

29 Oct 15:13
8a77d77
Compare
Choose a tag to compare

This release introduces breaking changes

I am currently implementing code standards across all my code bases by introducing a golangci-lint workflow. This release applies this workflow to go-hibp. Unfortunately this introduces a breaking change be renaming all methods and references that previously had Api in it to API and Http to HTTP.

Please update your code accordingly.

What's Changed

Full Changelog: v1.0.3...v1.0.4

v1.0.3: Hashlists support

10 Jun 07:19
bc1c5d0
Compare
Choose a tag to compare

This release adds support for retrieving hash lists in the PwnedPass API (See #14). We've added 3 new ListHashes*() methods to get access to all returned hashes:

  • ListHashesPrefix(): which accepts a 5-character hash as expected by the API endpoint (this is basically the previously private apiCall() method)
  • ListHashesSHA1(): which retrieves the list based on a given SHA1 checksum
  • ListHashesPassword(): which retrieves the list based on a give password string

We've also added length checks for *SHA1() and *Prefix() methods, so that invalid data provided to them will return an error.

Thanks binaek for feature request and the testing.

Changes worth mentioning

  • #14 implements the changes around the ListHashes*() methods
  • 8fe5b20 removes paddings results from the match lists

v1.0.2: Maintenance release

08 May 10:58
659a359
Compare
Choose a tag to compare

This is a maintenance release. Since the last release we've introduced code scanning via SonarQube and coverage testing using Codecov. This release addresses some findings and the better testing

Changes worth mentioning

  • 842cc12 Fixed a code smell in WithUserAgent() identified by SonarQube
  • af15c66 Added RateLimitSleep() to all tests so we can test via Github actions w/o failing
  • 77e5a43 Moved all code examples from dedicated files to the Example_* functions in the test files

First stable release

22 Sep 14:25
480b9bb
Compare
Choose a tag to compare

This release is the first stable release that implements all provided APIs in the HIBP system

BreachedAccount, better HTTP handling and rate limiting

22 Sep 13:17
1606565
Compare
Choose a tag to compare
Merge pull request #4 from wneessen/breaches

BreachedAccount, better HTTP handling and rate limiting

New methods for the breaches API

22 Sep 07:49
b130145
Compare
Choose a tag to compare

Added BreachByName()

Introducing breaches

21 Sep 17:59
bde44da
Compare
Choose a tag to compare
Merge pull request #1 from wneessen/breaches

v0.1.2: Introducing Breaches