Re:You might not need to store plaintext email addresses
by raziel2p on Monday November 02, 2020 @10:57AM
(#24969473)
Hah, when I wrote my comment above I didn't even consider the possibility of using the same salt everywhere.
I suppose the goal here is privacy, not information security, so it's okay.
Re:You might not need to store plaintext email addresses
by benlivengood on Monday November 02, 2020 @11:50AM
(#24970118)
It's pretty scalable. 10 billion email addresses times 16+32+4 bytes of salt, SHA512/256, and ID is 520GB of RAM; available in a single (big) machine and searchable in under a second with a few cores.
Shard it into multiple machines for higher QPS.
To do it any more securely would require pulling up every single record for its salt, and hashing the login with that salt and checking it. It's virtually impossible at any real scale.