Revision Difference
util.Base64Decode#527334
<function name="Base64Decode" parent="util" type="libraryfunc">
<description>Decodes the specified string from base64.</description>
<realm>Shared and Menu</realm>
<added>2020.04.29</added>
<args>
<arg name="str" type="string">String to decode.</arg>
</args>
<rets>
<ret name="" type="string">The raw bytes of the decoded string.</ret>
</rets>
</function>
<example>
<description>Encode string : Hello Word ! "</description>⤶
<description>Decodes a string</description>⤶
<code>
local encode = util.Base64Encode( "Hello Word !" )
print(encode)⤶
</code>⤶
<output>SGVsbG8gV29yZCAh</output>⤶
</example>⤶
⤶
⤶
⤶
<example>⤶
<description>Decode string : SGVsbG8gV29yZCAh ( Hello Word ! ) : "</description>⤶
<code>⤶
local decode = util.Base64Decode( "SGVsbG8gV29yZCAh" )⤶
local decode = util.Base64Decode( "QmFzZTY0IEVuY29kaW5n" )
print(decode)
</code>
<upload src="8e3f9/8d81149716e40c6.png" size="3072" name="example2.png" />⤶
<output><image src="8e3f9/8d81149716e40c6.png"/></output>⤶
<output>`Base64 Encoding`</output>⤶
</example>