Sites like youtube have their ID's using the full character range to make an ID eg dQw4w9WgXcQ. I am wondering how this would be done by selecting a number and turning it into a compressed number using the full range of basic characters like this.
a>b>c>d>e> ect >azy>azz>aAa>aAb
I have written this in javascript and it was hideous for how I did it was embedded for loops going through an array of possible characters. I really hope I don't need to do that again but the best I can find in an efficient manner is int to hex but hex does not cover the full range of characters I need.