[DUG] Hash function for string

Maurice Butler likemagic at quicksilver.net.nz
Mon Sep 21 18:09:28 NZST 2009


md5, crc32 - all standard stuff - dependng what you are after
 
Maurice

-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of John Bird
Sent: Monday, 21 September 2009 5:10 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Hash function for string


I need a function to get a hash value from a string about 100 or so
characters long, ideally giving something only 10-20 characters max - either
a string or number.
 
Any recomendations?
 
Used a simple roll-my own up to now, but it does not work well for more than
about 32 characters - well I think it might possibly give duplicates.
 
John

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20090921/42c609c8/attachment.html 


More information about the Delphi mailing list