64bit MessageDigest - store short texts as long
<p>I want to represent short texts (ie word, couple of words) as a 64 bit hash (want to store them as longs)</p>

<p>MessageDigest.getInstance("MD5") returns 128bits.</p>

<p>Is there anything else I could use, could i just peel off half of it. I am not worried of someone trying to duplicate a hash, I would like to minimize the number of clashes (two different strings having the same hash)</p>
