Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: