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
Hashids is a library (with Python support) that creates hashes that you can encode/decode very easily.
http://hashids.org/python/