Convert base64 to decimal - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Convert base64 to decimal (/showthread.php?tid=2084) |
Convert base64 to decimal - Yesyes - 16.05.2019 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? RE: Convert base64 to decimal - admin - 16.05.2019 Can you post an example of your data? Do you have binary representation of an integer encoded using base64? Does it have fixed length? RE: Convert base64 to decimal - Yesyes - 16.05.2019 (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 RE: Convert base64 to decimal - admin - 16.05.2019 You can convert binary string to hex by using lmcore.strtohex() |