I'm working on a project where I need to use some hash function to make a hash string. This hash string should be unique consists of 6 to 13 characters (fixed length).
I use a database to store data, so for each record, I have a unique ID. I want to use this unique ID to make a hash string ( to achieve uniqueness of resulted hash string).
I need this hash string to consists of only valid characters ( 0-9 a-z A-Z).
Which hash function should I use to achieve this goal? How can I generate such hash strings?
Added Later: I want to generate this string and pass it to user, so he can come back later to edit the entry. any other idea is acceptable.