logoalt Hacker News

kevin_nisbet • today at 7:12 PM • 4 replies • view on HN

Hmmm interesting, it didn't catch me by surprise.

It made me think about the old school days of using rainbow tables to break system passwords stored on a drive.

For anyone not familiar, before per-entry salts were common, a rainbow table was just a pre-computed mapping of inputs to their cryptographic hashes. So for example, every possibly 8 character password would be run through the crypto hash, and then you had an easy lookup table of hashes to inputs, and you could break the passwords. Long passwords would be difficult because the table would get huge. I could see a similar technique working here, even though it's words, the input space would be relatively narrow based on the topic and likely research, so a few million possibilities isn't hard to calculate and compare, just like generating every possible password up to a character limit.

Edit: I see lots of other comments that the original hash should've included a salt, but the salt fails to the same generator. 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.


Replies

mr_mitm • today at 7:41 PM

Many don't realize that a rainbow table is actually quite a sophisticated data structure that lets you trade CPU time for storage, and further, lets you choose the degree of that trade-off. There is a reduction function involved, which chains with the hash function, and the length of the chain determines the time it takes to reconstruct a password. When drawn up and colored, it looks like a rainbow. It's not a naive mapping, otherwise it would be called a hash table.

All implementations of rainbow table generators that I've seen (which aren't many, tbh) also assume that the password space consists of all combinations of a given alphabet, so your approach would require a very non trivial reduction function.

➕ show 2 replies
fc417fc802 • today at 9:41 PM

> 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.

craigmart • today at 7:32 PM

I suppose they were indeed suggesting to retain the salt until disclosure. That is precisely what a salt is (additional input to the hash function), just not used as when storing passwords, since you're protecting the secret against a different scenario (bruteforce)

➕ show 1 reply
jdzikowski • today at 7:25 PM

> It made me think about the old school days of using rainbow tables (...) For anyone not familiar, before per-entry salts were common, a rainbow table was just a (...)

I suddenly felt old...