ThinkAlexandria / BoringAuth

Straightforward password, passphrase, TOTP, and HOTP user authentication
Other
57 stars 9 forks source link

Document mistake on default hash algorithm of TOTP #7

Open 50Death opened 1 year ago

50Death commented 1 year ago

All the document says the default hash algorithm of TOTP is SHA1, but apparently the code says it is SHA256.

Screenshot of the document image image

Screenshot of the code image

Althrough sha256 may be more secured than sha1. Still most authenticator apps(Microsoft or Google) do not support it. I guess it's more suitable to set the default SHA1.