In comp.lang.javascript message
<11**********************@j44g2000cwa.googlegroups .com>, Sat, 25 Nov
2006 09:27:47,
Om*****@gmail.com wrote:
>I have a set of about 6 or so strings that I need to use to generate a
unique hash. This hash will become the unique key in a database so the
hash has to be the same each time I gen it for any 1 set of strings.
If the membership of the set of strings is unconstrained, the
requirement for a guaranteed-unique hash is that it contain at least as
much information as the strings do. It will be possible to recover the
set of strings uniquely from the hash.
Then, if at least one of the strings is unbounded in length, the unique
hash must be unbounded in length too.
Then, you might as well use the set of strings itself, perhaps
compressed by ZIP or similar.
If you want to make more progress, you must either change your question
of accept the answer to a different question.
It's a good idea to read the newsgroup and its old FAQ. See below.
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6
<URL:http://www.jibbering.com/faq/ Old RC FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.