Cryptography: What is the probability of getting hash collisions in two different hash algorithms (like MD5 and SHA-256) for two different byte sequences?
-
In practice, if I found two different files that have the exact same MD5 hash, what is the probability of also having the same SHA-256 hash for both files? I used MD5 and SHA-256 only as examples. The question is open to all hashing algorithms.
-
Answer:
As stated, the answer to the question is 2^-256, assuming the messages are randomly chosen and SHA-256 is a good hash function. However, if you ask a slightly different question, you get a more interesting answer. Antoine Joux showed that you can't use a combined hash and expect a combined security result. In this case, the hash function hash(x) defined as md5(x) || SHA-256(x) can be broken in an expected 128 * 2^64 hashes, well below the theoretical bound expected for a hash of that size (2^192). The paper is written well and the algorithm is easy to understand http://www.iacr.org/cryptodb/archive/2004/CRYPTO/1472/1472.pdf
Martin Cochran at Quora Visit the source
Other answers
Assuming MD5's output is independent of SHA256's output then the answer Is the same as the probability of collision for SHA256 only, 2^-256.
Alexandru MoÈoi
Related Q & A:
- How To Connect Two Different Network Segments Using A Switch And A Router?Best solution by Super User
- How do I bridge two different amps together?Best solution by ecoustics.com
- Does mikkel bang have two different colored eyes?Best solution by Yahoo! Answers
- How do I file taxes when I worked in two different states?Best solution by Yahoo! Answers
- What's the difference between getting a certificate in a year or getting an AA for x ray tech?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.