Hash String to String/Int



Can someone point me to a good cpan module employing a one way hashing algorithm?

e.g. http://dev.mysql.com/doc/mysql/en/innodb-physical-structure.html maps to 278HGKJZLKLK23 every time.

I need to be able to map a potentially long string (ie a URL) to a shorter string (or integer) so I can effectively index a table.

(i'm not worried about the occasional duplicate, i understand it's not possible to effectively condense every string acturately to a shorter unique string)

Thanks,


Alex

--

Alex Banks
----------------------
Alexite Limited
http://www.alexite.com
.



Relevant Pages

  • Re: NameObjectCollectionBase or something else?
    ... Hashtable is a generic class that maps objects to objects (key and value can ... NameObjectCollectionBase to map a string to more than one value. ... string value, lookup by key only). ...
    (microsoft.public.dotnet.framework)
  • Re: "String" Case Question
    ... Can someone explain to me the difference between declaring a string ... ..NET was designed to support multiple languages, ... Language implementations targeting .NET, then maps its ... A# aka MGNAT maps Integer->System.Int32 and does not map Unbounded_String (different semantics) ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: String formatting with %s
    ... It basically just returns a dictionary that maps your ... positional-index of your input to your input. ... the index to a string. ... indexing rather than zero-based indexing, ...
    (comp.lang.python)
  • Re: Idle thought about bless
    ... On Jun 13, 10:48 pm, fishfry ... it maps a referent to a string. ...
    (comp.lang.perl.misc)