I want to hash/encode a unique integer (database ID) to create a similarly unique string.
It needs to meet the following requirements:
- Must start with a letter or number, and can contain only letters and numbers.
- All letters in a container name must be lowercase.
- Must be from 3 through 63 characters long (although the shorter the better)
The result does not need to be reversible, just repeatable – so a 1-way hash would be fine.
A simple solution would be a base 36 encoding. The output will be a string between one and six characters.