Cryptanalytic result from Anthropic: paper title leaked (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
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 (4)
I suddenly felt old...
Replies (1)
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.
Replies (2)
And key stretching algorithms (and more modern fit for purpose password hashing functions) largely defeat brute force.
Replies (1)
1. during computation of the table. The end result that is stored is just a lookup table of input, output.
2. when the input is longer than the block size of of the hash, otherwise there is no chaining to take advantage of. For all the SHA functions the block size is >= 64 bytes - so for passwords of size 8, it is literally just computing a hash table with every input.
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 (1)
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.