4 ms·
http://en.wikipedia.org/wiki/Cryptographic_hash http://en.wikipedia.org/wiki/Cryptographic_hash should be an OK start, with further links to more precise explan
by masklinn 14y ago
http://en.wikipedia.org/wiki/Cryptographic_hash http://en.wikipedia.org/wiki/Cryptographic_hash should be an OK start, with further links to more precise explanations of the crypto concepts.
> How do you know it can't be reversed easily?
Some you prove: http://en.wikipedia.org/wiki/Provably_secure_cryptographic_hash_function http://en.wikipedia.org/wiki/Provably_secure_cryptographic_h...
But more commonly (because provably secure crypto functions are extremely hard to design) you think hard about them, then unleash fellow and opposing crypto specialists to try and break them[0], as was done by NIST[1]
[0] http://en.wikipedia.org/wiki/Cryptanalysis http://en.wikipedia.org/wiki/Cryptanalysis
[1] http://en.wikipedia.org/wiki/NIST_hash_function_competition http://en.wikipedia.org/wiki/NIST_hash_function_competition
- martinced 14y ago> How do you know it can't be reversed easily? It is impossible to reverse because information is lost. There's an infinite number of "plain text" leading to a same hash. If you could reverse, say, SHA-1, then you'd just have invented the best compression scheme ever and the world as we know it would be no more: the implication would be huger than anything we can imagine. You could compress a full movie in a SHA-1 hash. Not. Gonna. Happen. It is impossible. The problem is not reversing information: reversing is simply impossible. The problem is finding collisions and hence being able to create plain texts that shall lead to the same hash.
- bo1024 14y agoIt should be noted that we still don't "know": even "provably" secure functions depend on an assumption that may or may not be true, such as that factoring integers is much harder than multiplying them. Of course, almost everyone thinks these problems are in fact hard (at least for classical computers), but there's no proof (such a proof would imply P != NP).
- mjn 14y agoThe assumption needed is even stronger than the complexity-class question: even if you proved integer factorization was not in P, that wouldn't be enough, since you need integer factorization to be almost always hard in every instance of the problem. Or at least you must have some way to identify and exclude the easy-to-solve instances. Example: SAT-solving is NP-complete, but nonetheless heuristic SAT solvers are very good in practice, which makes its hardness too weak for cryptographic use. That can be ameliorated by trying to identify a more specific subset of "actually hard to solve SAT" (some of the research on the SAT "phase transition" aims at this), but it's pretty difficult. A few problems like integer factorization seem to have just arrived with this apparent always-hard property, but attempts to engineer it have been less successful, hence to my knowledge no used-in-practice cryptosystem is based on taking an NP-hard problem and turning it into a cryptographically useful one-way function (even though Diffie & Hellman suggested that as a research agenda way back in 1976). I wrote an essay on that subject a few years ago, since the reverse question also comes up in AI discussions: http://www.kmjn.org/notes/nphard_not_always_hard.html http://www.kmjn.org/notes/nphard_not_always_hard.html
- betterunix 14y ago"to my knowledge no used-in-practice cryptosystem is based on taking an NP-hard problem and turning it into a cryptographically useful one-way function" Not used in practice, but such a result was presented by Atjai and Dwork: https://dl.acm.org/citation.cfm?id=258604 https://dl.acm.org/citation.cfm?id=258604
- eru 14y agoThere were some attempts to make the knapsack problem into an encryption system. But the early attempts were broken, then patched up and re-broken etc, and nobody has invested enough time into breaking the latest efforts, so cryptographers don't trust it.
- tgflynn 14y agoAn interesting thing about this is that you can transform the integer factorization problem into SAT quite easily (I have code that does it). The resulting SAT problems seem to be hard to solve for heuristic SAT solvers once you get beyond a very small number of bits for the integer sizes.
- mjn 14y agoI'm not very familiar with the literature, but there are some people using SAT solvers in that manner to do a kind of automated cryptanalysis. Here's one paper that encoded the DES procedure into a SAT problem, and looked at how SAT solvers fare on it: http://www.ing.unitn.it/~massacci/papers/mass-marr-00-JAR.pdf http://www.ing.unitn.it/~massacci/papers/mass-marr-00-JAR.pd...