Hacker News new | ask | show | jobs
by StavrosK 3623 days ago
My point is that, if someone is going to guess the N bit identifier, they can also easily guess the signature.
1 comments

Depends entirely on how well you generate your IDs. Yes, if you generate cryptographically strong IDs of sufficient length, then you don't need to sign.

Signing avoids the need to generate secure IDs, though, and can also avoid hitting to the DB for expired tokens. (Load from expired tokens is probably not a major concern, though.)