What i want to do is to make an obfuscate id when i show a user url, i want to have an obfuscate id with exactly 16 characters in length, and without collision, so for example instead of
http://localhost:3000/users/2
i want something like this :
http://localhost:3000/users/3a5643f943cc3a44
i already find the same question in other posts here and here and also others... but can't find an answer of what i want exactly.
=========== Update: ===========
It's been some years now since I posted this question, I just want to mention that there is a super helpful gem called hashids which I use in all my recent projects, it's straight forward and easy to use :)