Our great sponsors
-
hashids
A small PHP library to generate YouTube-like ids from numbers. Use it when you don't want to expose your database ids to the user.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
You may also want to look at ULIDs
Depending on your requirements, you may also want to look at libraries that allow you to generate an ID using an existing identifier such as hashids. Unlike UUIDs (or other random values) these are predictable (if you know enough values and their original IDs, or watch new ones being created, you can reverse-engineer the mapping) but can still serve as a short, obfuscated value.
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.
Related posts
- Show HN: Sqids (formely Hashids) – Generate short unique IDs from numbers
- How to create a unique random string in PHP and SQL relational data base ?
- Hashing a query?
- Should I use a base64 ID instead of a UUID? Seems like that would be cleaner.
- Take a break: Error-detecting codes in credit card numbers, ISBNs etc. (2000)