by oconnore · 1y ago · 0 comments
There is no need to put the privacy preserving ID in a database index when you can calculate the mapping on the fly
You put in 128 bits, you get out 128 bits. The encryption is strong, so the clients won't be able to infer anything from it, and your backend can still get all the advantages of sequential IDs.
You also can future-proof yourself by reserving a few bits from the UUID for the version number (using cycle-walking).