News for hackers. Stuff that matters.
Re:New UUID Formats by mappu on Sunday June 12, 2022 @04:32PM (#31717998)
I've done something similar to obfuscate private DB IDs in a large existing application - just ensure they're all Skip32-encoded in all query parameters with an app-wide secret.

It works well but you have to be very disciplined to catch every case individually. Using GUID PKs from the start just removes this entire category of problem.

Re:New UUID Formats by chrismorgan on Monday June 13, 2022 @12:48AM (#31721274)
If it requires discipline, you’re doing it wrong. For best results, it should be threaded through your ORM or equivalent so that you can’t do it wrong, that at your app layer you never get raw IDs.