News for hackers. Stuff that matters.
Re:Facebook probably has your phone number, even if you neve... by parker_mountain on Tuesday November 01, 2022 @07:27PM (#33429242)
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.

Re:Facebook probably has your phone number, even if you neve... by lost_tourist on Tuesday November 01, 2022 @09:37PM (#33430435)
I would say it's better than doing nothing though.
Re:Facebook probably has your phone number, even if you neve... by parker_mountain on Thursday November 03, 2022 @08:25PM (#33460009)
It's complicated. Your local security engineer might be wringing their hands about this. Definitely an avoid at any cost kinda situation.