This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Convert base64 to decimal
#1
hii guys,

I want to convert a base64 value to decimal, but I cant get it to work.

Only command I'm seeing is encdec.base64dec(str) . Any suggestions?
Reply
#2
Can you post an example of your data? Do you have binary representation of an integer encoded using base64? Does it have fixed length?
Reply
#3
(16.05.2019, 07:51)admin Wrote: Can you post an example of your data? Do you have binary representation of an integer encoded using base64? Does it have fixed length?

I get data from an https.request, no fixed length. For example: 

decimal 1 --> the data I get from the request (base64): AQ==

Now I want to decode back to decimal or HEX
Reply
#4
You can convert binary string to hex by using lmcore.strtohex()
Reply


Forum Jump: