Generating human-readable/usable, short but unique IDs
Base 62 is used by tinyurl and bit.ly for the abbreviated URLs. It’s a well-understood method for creating “unique”, human-readable IDs. Of course you will have to store the created IDs and check for duplicates on creation to ensure uniqueness. (See code at bottom of answer) Base 62 uniqueness metrics 5 chars in base 62 … Read more