I currently have a binary string that has been encoded with base64_encode(). However, I need to represent this string only with 0-9a-zA-Z characters.
I am currently wrapping the string in bin2hex() to represent it with 0-9a-f. However, for transport reasons, I would like to compress the string by representing it in base 36 instead of base 16.
My attempts at wrapping the bin2hex'ed string with base_convert($string, 16, 36) appears to work, until I attempt to decode it with base_convert($string, 36, 16), and it just results in all 0s. Why is that?