go-hibp/md4
Winni Neessen 179cd36d7f
#27: Implement NTLM hash support for PwnedPassAPI
This PR implements support for NTLM hashes as announced by Troy Hunt:
https://s.pebcak.de/@troyhunt@infosec.exchange/109833758367903768

For this we needed to be able 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 "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`
2023-02-09 17:07:20 +01:00
..
LICENSE #27: Implement NTLM hash support for PwnedPassAPI 2023-02-09 17:07:20 +01:00
md4.go #27: Implement NTLM hash support for PwnedPassAPI 2023-02-09 17:07:20 +01:00
md4_test.go #27: Implement NTLM hash support for PwnedPassAPI 2023-02-09 17:07:20 +01:00
md4block.go #27: Implement NTLM hash support for PwnedPassAPI 2023-02-09 17:07:20 +01:00