Sqids (pronounced "squids") is an open-source library that lets you generate YouTube-looking IDs from numbers. These IDs are short, can be generated from a custom alphabet and are guaranteed to be collision-free. Read more .
This is what they look like:
Sqids for Crystal is not ready [yet].
Please star the repo to move it up our todo list: https://github.com/sqids/sqids-crystal
If you're looking for the original Hashids Crystal, you can find it here . Please note that it will not be compatible with the current algorithm once this version is done.
The main use of Sqids is purely visual. If you'd like to use IDs instead of numbers in your webapp, Sqids could be a good choice: