Hacker News new | ask | show | jobs
by xienze 240 days ago
People really overthink this. You can safely expose internal IDs by doing a symmetric cipher, like a Feistel cipher. Even sequential IDs will appear random.
1 comments

Looks easy on the surface, but the problem is key rotation.
I didn't know about this problem but was already thinking it sounds even harder. And the resulting IDs are probably quite large.