3 ms·
While a secret salt is effective in the short term, it's an un-rotatable value. Which means, if the salt gets leaked, you are screwed (or rebuilding the entire
by parker_mountain 4y ago
While a secret salt is effective in the short term, it's an un-rotatable value. Which means, if the salt gets leaked, you are screwed (or rebuilding the entire table by brute forcing it, or adding another layer of salting - not great!).
For a company operating at Facebook's scale, with their kind of scrutiny around handling PII, this is unfortunately functionally useless.
For some data types where hashing isn't super effective, and where associative identifying information is attached (such as a user id), a more effective mechanism might be to encrypt the data with a strong random value appended, and decrypt to do the lookup. This would require a correctly provisioned HSM to do properly - the private key secrets should NEVER be exported.
While hashing seems like a good idea, it's actually particularly and deceptively tricky for these kinds of use cases.
- lost_tourist 4y agoI would say it's better than doing nothing though.
- parker_mountain 4y agoIt's complicated. Your local security engineer might be wringing their hands about this. Definitely an avoid at any cost kinda situation.