Show HN: Js-shortid – Generate short id clearly the simplest
github.com
github.com
It's quick, easily reversible (so you can translate "XmVgp" to "34" without consulting the database), and lets you choose the character set and minimum # of characters.
Math.random().toString(36).substr(2, 8)