News for hackers. Stuff that matters.
Re:Auto increment is a terrible idea by prepend on Thursday November 30, 2017 @08:32AM (#15815540)
I think you’re better off keeping the auto increment PK then expose a uuid token anywhere it can be viewed.

You probably don’t want to be literally passing around the literal primary key if you are concerned about leaking security information.

But I think it’s probably better so the user id being known is not a problem. For example, not caring if people know how users/widgets/whatever.

Re:Auto increment is a terrible idea by brianwawok on Thursday November 30, 2017 @08:48AM (#15815642)
This. Use the autoinc for FK. Use GUID for exposing.