logoalt Hacker News

fc417fc802 • yesterday at 9:41 PM • 1 reply • view on HN

> Unless they're talking keeping the salt secret until they want to make the revelation and only providing it at that time, which isn't exactly a salt IMO.

Why not? You're still salting the input to the hash and cheating hash( salt + secret ) by manipulating the salt after editing the secret is equivalent to brute forcing a hash collision.

I suppose you could call it a key instead of a salt in this context but the way you feed it into the function is the same as a salt. That said, there are also keyed hash functions out there if you prefer that for some reason.


Replies

kevin_nisbet • today at 2:39 AM

Sorry for being unclear, in my mental model from the way salts are used with passwords is the salts aren't a secret (you might not share them, but you don't need to protect them like a secret in a system design).

So talking about the person who original created the hash to prove knowledge of the title, if they published the resulting hash and the salt (it's not a secret) the same problem would exist with brute forcing guesses. Now if that person kept the salt secret and only released it later, I stop thinking salt and think key's and more in the territory of an HMAC, which is what you're getting at with calling it a key.

So you're right, it depends on what people were actually thinking when referring to it as a salt, whether it would be kept secret or not, and in this case the secret nature released later.