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

Bugs happen also in access control. Unguessable IDs make it much harder to exploit some of those bugs. Of course the focus should be on ensuring correct access control in the first place, but unguessable IDs can make the difference between a horrible disaster and a close call.

It's also possible to use auto-incrementing database IDs and encrypt them, if using UUIDs doesn't work for you. With appropriate software layers in place, encrypted IDs work more or less automatically.



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

Search: