Hacker News new | ask | show | jobs
by accnt 3295 days ago
I was wondering a similar implementation. I encrypt/decrypt database IDs to opaque them on the API. For primary entities but not enums/etc. I separated API vs Core/Database so I wasn't too fond of adapting the entities to add a sort-of public id column so I create it at run-time.
1 comments

I can share my code on Github, it will be interesting to find some commons. Probably, this approach deserves more attention.