(no title)
waffle_ss | 2 years ago
So instead of
/customers/1
/customers/2
You'll get something like /customers/4552956331295818987
/customers/3833777695217202560
Kinda similar idea to this library but you're encoding from an integer to another integer (i.e. it's format-preserving encryption). I like keeping the IDs as integers without having to reach for e.g. UUIDs
wslh|2 years ago
[1] https://news.ycombinator.com/item?id=38418198