Thanks.  I'll check it out.
----- Original Message -----
Sent: Thursday, October 23, 2003 2:33 PM
Subject: RE: [DUG]: Hash

TurboPower Open Source project LockBox has the code you want. The unit name is LBCIPHER.PAS. Url is http://sourceforge.net/projects/tplockbox/
 
Here is the declaration
 
procedure StringHashELF(var Digest : LongInt;
            const Str : string);
procedure StringHashLMD(var Digest; DigestSize : LongInt;
            const Str : string);
procedure StringHashMD5(var Digest : TMD5Digest;
            const Str : string);
procedure StringHashMix128(var Digest : LongInt;
            const Str : string);
procedure StringHashSHA1(var Digest : TSHA1Digest;
            const Str : string);
 
Regards
Leigh

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Ross Levis
Sent: Thursday, October 23, 2003 1:59 PM
To: Multiple recipients of list delphi
Subject: [DUG]: Hash

Does anyone have a simple hash routine which takes a string of characters and (hopefully) returns a unique integer based on the characters in the string.  The strings will be folder locations and will be anywhere from 20 to 60 characters long.
 
Thanks.
 
Ross Levis.
 

Reply via email to