Hashids

This is a very nice library to generate short hashes from numbers (like YouTube and Bitly).

You can also obfuscate database IDs, use them as forgotten password hashes, invitation codes or store shard numbers.