Re: [DUG] Hash function for string

2009-09-21 Thread Maurice Butler
] 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

Re: [DUG] Hash function for string

2009-09-21 Thread Richard Vowles
Really you want SHA-256/512/1024 if you want your algorithm to be collision resistant. MD5 is a bit on the antique side (invented in 1991). 2009/9/21 Maurice Butler likema...@quicksilver.net.nz md5, crc32 - all standard stuff - dependng what you are after Maurice -- --- Richard Vowles,

[DUG] Hash function for string

2009-09-20 Thread John Bird
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

Re: [DUG] Hash function for string

2009-09-20 Thread Bevan Edwards
What about using MD5? -- -Original Message- From: John Bird johnkb...@paradise.net.nz Date: Mon, 21 Sep 2009 17:10:28 To: NZ Borland Developers Group - Delphi Listdelphi@delphi.org.nz Subject: [DUG] Hash function for string