hashids

Generate YouTube-like ids from numbers. Use Hashids when you do not want to expose your database ids to the user.

hashidshashidhashidsyoutubebitlyobfuscateencodedecodeencryptdecrypt

http://hashids.org/javascript