v1.0.3: Hashlists support
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 privateapiCall()
method)ListHashesSHA1()
: which retrieves the list based on a given SHA1 checksumListHashesPassword()
: 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.