I've been looking online, but can't find a solution to this. In Python, Ruby, or Java, how can I base 36 encode the following string: nOrG9Eh0uyeilM8Nnu5pTywj3935kW+5=
To base 36:
s.unpack('H*')[0].to_i(16).to_s 36
From base 36:
[s36.to_i(36).to_s(16)].pack 'H*'
Looks like wikipedia has an article on how to do it in python: http://en.wikipedia.org/wiki/Base_36
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With