Just for the record. Iâve uploaded a package to smalltalkhub that contains util classes to en-/decode values into/from Base62/Base36. Base62/Base36 encode numbers in short strings. These are used e.g. by url shortener services from google, bit.ly etc. Base36 uses lowercase letters and numbers to encode, Base62 uses all characters from Base36 plus all uppercase letters. Base62 produces smaller strings while Base36 produces case insensitive ones. Example: Base62 fromNumber: 100000 -> 'q0Uâ Base36 fromNumber: 100000 -> â255s' FYI, Norbert
Hmm *cough* http://smalltalkhub.com/#!/~NorbertHartl/Base62 Norbert Am 12.06.2014 um 13:12 schrieb Norbert Hartl <norbert@hartl.name>:
Just for the record. Iâve uploaded a package to smalltalkhub that contains util classes to en-/decode values into/from Base62/Base36.
Base62/Base36 encode numbers in short strings. These are used e.g. by url shortener services from google, bit.ly etc.
Base36 uses lowercase letters and numbers to encode, Base62 uses all characters from Base36 plus all uppercase letters. Base62 produces smaller strings while Base36 produces case insensitive ones.
Example:
Base62 fromNumber: 100000 -> 'q0Uâ
Base36 fromNumber: 100000 -> â255s'
FYI,
Norbert
participants (1)
-
Norbert Hartl