4 ms·
I think it's usually base62.
by joombaga 5y ago
I think it's usually base62.
- ______- 5y agohttps://www.kerstner.at/2012/07/shortening-strings-using-base-62-encoding/ https://www.kerstner.at/2012/07/shortening-strings-using-bas...
- rascul 5y agoProbably is. Base64 includes + and / which I believe need to be URL encoded, plus the = padding can mean an extra step if you want to remove them to make the URL pretty. https://en.wikipedia.org/wiki/Base64#Base64_table https://en.wikipedia.org/wiki/Base64#Base64_table
- natdempk 5y agoYou can also use an alternate alphabet like this one https://base64.guru/standards/base64url https://base64.guru/standards/base64url which replaces +/ with -_ which are URL safe characters.