5 ms·
This article is important, but seems a little technically sloppy. The issue isn't about autoincremented IDs, but the fact that they are used as external identi
by sanj 19y ago
This article is important, but seems a little technically sloppy. The issue isn't about autoincremented IDs, but the fact that they are used as external identifiers. The specific reason they shouldn't be used is that they are guessable.
It also confuses the concept of a GUID a little, I think. That refers to a global UID, which could reasonably be a URL+autoincremented number: global and unique.
But guessable. Which is the core issue.
I try to consider external IDs like passwords: create a cryptographically strong hash, using some salt, and externalize that.
- brlewis 19y agoWorse, the most common GUID is 128 bits formed from (I think) a MAC address plus a timestamp. They are designed for uniqueness, not non-guessability. On ourdoings.com photos are given unique, random URLs. No nude photos allowed, though.
- sanj 19y agoPikans responding to pikans. The world continues to shrink.