Revision Difference
util.Base64Encode#527335
<function name="Base64Encode" parent="util" type="libraryfunc">
<description>Encodes the specified string to base64.</description>
<realm>Shared and Menu</realm>
<args>
<arg name="str" type="string">String to encode.</arg>
</args>
<rets>
<ret name="" type="string">Base 64 encoded string.</ret>
</rets>
</function>
<example>
<description>Encode string : Hello Word !"</description>⤶
<description>Encodes a string</description>⤶
<code>
local encoded = util.Base64Encode( "Hello Word !" )
local encoded = util.Base64Decode( "Base64 Encoding" )
print(encoded)
</code>
<upload src="8e3f9/8d81148e1e00c13.png" size="1839" name="example.png" />⤶
⤶
<output><image src="8e3f9/8d81148e1e00c13.png"/>⤶
SGVsbG8gV29yZCAh ⤶
</output>⤶
<output>`QmFzZTY0IEVuY29kaW5n`</output>⤶
</example>