What’s main uses for this?
i don’t know. I just didn’t have anything better to do.
That’s reason enough!
Why not just use the POSIX method l64a?
Or here is something similar with Python, uses 0-9A-Za-z-_. radix 64:
def strb(val, base=10):
import string as cf
dh = cf.digits + cf.ascii_uppercase + cf.ascii_lowercase + '-_'
ko = ''
ko = dh[val % base] + ko
val //= base
YouTube uses this for their video_ids.
Because I didn’t search for similar methods.