Re: protect passwords in database



Jon Skeet [C# MVP] wrote:
John B <jbngspam@xxxxxxxxx> wrote:
Out of curiosity, what weaknesses? My FreeBSD boxes use them to great effect.
md5 has been proven to have collisions. ie two values producing the same hash.

All hash codes will have collisions. That much is clear just from the pigeon-hole principle. The concern isn't that there *are* collisions - it's that they can be engineered deliberately.

Agreed, sorry.

From what I remember of the MD5 "hole", it wouldn't actually help anyone to break into such a system. Of course, it's worth researching what the hole actually is rather than just taking my word for it.

In an interesting side note, the md5 'weakness' was actually used in a defense against a traffic notice here in Australia recently.
A picture was taken, md5 hash generated for it and the person driving argued in court that since md5 was 'broken' it was invalid.
The traffic authority was given a period of time to produce expert witnesses to refute this claim and since they didn't, the case was thrown out. :)

JB
.



Relevant Pages

  • Re: When will md5crk complete?
    ... and in that case birthday attack ... > His core message is correct however: you shouldn't be using MD5. ... Collisions DO exist for every hash algorithm... ...
    (sci.crypt)
  • Re: MD5 Myths
    ... That's an over-broad indictment of MD5. ... ways to deliberately create collisions; ... found ways to create source strings that will hash to a ... in the MD5 digest to do more and/ or redesign ...
    (sci.crypt)
  • Re: Complex Theoretical One Way Hash Question
    ... JPEG) in the image such that the MD5 is human readable in the image AND ... is an MD5 of the modified image including the readable MD5. ... You can't do this without breaking the hash. ... possible collisions. ...
    (sci.crypt)
  • RE: MD5 To Be Considered Harmful Someday
    ... inputs from a given hash. ... collisions for), but that they can produce colliding inputs by some ... wrong initial values for MD5, and in the same day ...
    (Bugtraq)
  • Re: Rand generator (MD5)
    ... My micro cannot handle anything more than 32 bits! ... YOu do not have MD5. ... It does not sound to me like your hash implimentation is very ... void byteReverse(unsigned char *buf, unsigned longs); ...
    (sci.crypt)