Skip to content

v1.0.3: Hashlists support

Compare
Choose a tag to compare
@wneessen wneessen released this 10 Jun 07:19
· 30 commits to main since this release
bc1c5d0

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