I always go for Hashids (https://hashids.org/)
How? I mean they're of course no cryptographic measure but with the salt you have some secrecy.
I wrote a library that generates short IDs with the goal of making the similarity between two codes have nothing to do with sequence order.
> Hashids is a small open-source library that generates short, unique, non-sequential ids from numbers.
vs the summary in the article:
> So now when I list atoms from my filesystem or in S3, they come back in the same order that I wrote them.