I am attempting to convert base 16 to base 36. I’m taking md5 hashes and making them have all 0-9a-z.
I searched around and didn’t find anything good. Any suggestions for converting hexadecimal to hexatridecimal in c++? Do you guys know any good libraries for doing it?
I assume the tricky part you’re struggling with is the conversion to Rad36, not getting a integral value from a hex number represented as a string. So, here is a function which takes an
unsigned __int64, converts it to Radix 36, and returns a string with the converted value.