Remix.run Logo
▲ andai 3 hours ago

This implies that someone could crack an encrypted message of mine by just running a markov chain trained on my HN posts.

▲jazzyjackson 3 hours ago | parent | next [-]

An encrypted message is different than a hashed message, the ciphertext include entropy from the key.

▲ignoramous 3 hours ago | parent [-]

The cryptographer forgot to salt their SHA?

▲sophacles 2 hours ago | parent [-]

What would a salt do in this case?

The point of a salt in a stored hash of a password table is to prevent pre-computation of all possible hashes that fit within the password parameters and doing a lookup of hash => input (rainbow tables).

In this case we're discussing quickly guessing the password and running hash in realtime.

So if he salted the hash and published the salt, nothing would change.

If he salted the hash and then waited until the publication to publish the salt value, he could be accused of mining for the salt after the paper title was available to him. Mining the salt after the fact would be harder, but leave room for doubting the pre-release knowledge.

tl;dr - the value of a salt is that it forces you to do the work, not that it makes passwords unguessable.

▲hcs 2 hours ago | parent | next [-]

The point is that, unless something drastically changes soon, mining a good sized salt so the hash matches exactly should be infeasible.

▲ 2 hours ago | parent | prev | next [-]
[deleted]
▲FredFS456 2 hours ago | parent | prev | next [-]

He could have appended a 256 bit random string to the title

▲seri4l 2 hours ago | parent | prev [-]

That's not "mining", that's a collision...

▲anamexis an hour ago | parent | next [-]

Finding collisions is exactly what a lot of crypto mining is.

▲sophacles an hour ago | parent | prev [-]

Crypto mining is literally iterating a nonce (just a salt) on a payload until you find a hash that has N bits colliding with a known value. Well at least for bitcoin.

▲seri4l an hour ago | parent [-]

Yes, that's mining. This would be equivalent to mining with difficulty 256, in other words find a plaintext that returns a hash that is all zeroes.

▲sophacles an hour ago | parent [-]

So you just like making distinctions without differences?

▲seri4l 25 minutes ago | parent [-]

Mining is something that happens every 10 minutes by design. A hash collision is something that shouldn't be achievable without breaking the fundamental assumptions on which computer security is built. In the bitcoin analogy, a hash collision would allow you to steal Satoshi's wallet. That's the difference.

▲dboreham 3 hours ago | parent | prev [-]

I don't think so because encryption systems pad short messages for exactly this reason.