md5 with small strings

From: Gary Robinson (grobinson_at_transpose.com)
Date: 07/28/03


Date: 28 Jul 2003 12:35:22 -0700

Hello,

For an application we're developing we're thinking of using md5 as a
16-byte hash for strings that could by anywhere from 20 to 200 bytes
long. There could be on the order of one million of them to be hashed.

I understand that md5 is very good at avoiding collisions, but what
about in cases where the strings are that short? Are the odds good
that we'll have no collisions (a handful of collisions wouldn't be the
end of the world for this application, but it would make more sense to
use this hash if the odds are good that there wouldn't be any.

Many thanks in advance for any help,

Gary



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: reversing hash ?
    ... If Say I took password A and encrypted it with some sort of MD5 Hash, ... "9583442647", insted of generating strings of 10 bytes, generate two strings ... I've set up a delphi program that I guess does some Brute ...
    (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)
  • The math of CRC functions
    ... text such that the chance of hash collisions is a small as possible ... I'm thinking CRC functions are a good answer. ... the inputs are all strings of ASCII text and thus the ... But what if all I care about is minimizing the chance of hash ...
    (sci.math)
  • 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)