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
![How do I obfuscate the ids of my records in rails?](https://cdn-ak-scissors.b.st-hatena.com/image/square/98d6f053a97a87156775f60757c60865d0f2c47d/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fstackoverflow%2FImg%2Fapple-touch-icon%402.png%3Fv%3D73d79a89bded)