logoalt Hacker News

fc417fc802 • today at 9:41 PM • 0 replies • 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.