I'm trying to figure out how to obfuscate the ids of my records in rails. For example: a typical path might look like http://domain/records/1, so it's pretty easy for people to deduce how much traffic the site is getting if they just create a new record. One solution that I've used is to hash the id with a salt, but since I'm not sure whether that function is bijective, I end up storing it in anot