Re:Blake3 is 10 times faster than SHA-2
by jaytaylor on Saturday January 11, 2020 @09:07PM
(#22023954)
My take away was that the server relief comes from reducing the ability of clients to trigger disproportionate amounts of server resource consumption.
[ Parent
| on HN ]
Re:Blake3 is 10 times faster than SHA-2
by nneonneo on Saturday January 11, 2020 @10:59PM
(#22024371)
I don’t see how that follows. If HSrv is expensive or slow, a malicious client could just submit nonsense hashes that only look like they might have come from HCli - the server shouldn’t be able to tell the difference.
Requiring client-side JavaScript for your login system seems fraught. I would much rather have an approach that does server side hashing exclusively, but gates it behind some kind of DDoS protection or rate-limiting.
You do the slow (bcrypt, argon2 or whatever) hash in the browser, and then the server can do the hyper-fast hash (SHA256).
You can still flood the server, but you're flooding it with things that take microseconds to compute, instead of 50ms.