Short Python alphanumeric hash with minimal collisions

Posted by ensnare on Stack Overflow See other posts from Stack Overflow or by ensnare
Published on 2010-03-24T19:14:36Z Indexed on 2010/03/24 19:53 UTC
Read the original article Hit count: 505

Filed under:
|
|

I'd like to set non-integer primary keys for a table using some kind of hash function. md5() seems to be kind of long (32-characters).

What are some alternative hash functions that perhaps use every letter in the alphabet as well as integers that are perhaps shorter in string length and have low collision rates?

Thanks!

© Stack Overflow or respective owner

Related posts about python

Related posts about hash