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

HASH(<id> + "static string pad") is how I imagine most people do it. Depends how much you care about a dedicated attacker figuring out that ID.

If this is a thing you're going to use a lot, I'd probably just add a database column and give each record a random unique "public ID" -- then there is literally no connection between the public ID and the private one..



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

Search: