abbot / go-http-auth

Basic and Digest HTTP Authentication for golang http
Apache License 2.0
544 stars 121 forks source link

More crypters [Patch included] #72

Open jochumdev opened 4 years ago

jochumdev commented 4 years ago

Hi,

thanks for your great work, it's very usefull for me.

I did a little change to add support for more crypters:

https://github.com/webmeisterei/go-http-auth/commit/7616ea56faee4a7f203c195f22bee42c08774ce4

Do you want a pull request for that?

Thanks and Kind regards, René

abbot commented 4 years ago

Thanks for your suggestion. That patch adds a dependency on a third-party library, which I don't like. Current implementation pulls in only standard library and standard library supplement (maintained by the Go team), and I would prefer to keep it that way. Which specific crypters support does this add which you would be interested in?

jochumdev commented 4 years ago

@abbot Thanks for your response.

I would love SHA256 Crypt and SHA512 Crypt, 256 is used by Check_MK htpasswd.

Code for them is here: https://github.com/GehirnInc/crypt - BSD-2 Clause