Sqids (pronounced "squids") is a small library that lets you generate YouTube-looking IDs from numbers

published on 2023/08/14

It's good for link shortening, fast & URL-safe ID generation and decoding back into numbers for quicker database lookups.

sqids.net

It is a rebranding of the excellente Hashids.Net library.

We use it to prevent id enumeration attack where attacker just increment the integer id based on the data passed on the url e.g. /admin/user/333 and /admin/user/334.