Revision Difference
util.Base64Encode#527285
<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>⤶
<code>⤶
local encoded = util.Base64Encode( "Hello Word !" )⤶
print(encoded)⤶
</code>⤶
<upload src="8e3f9/8d81148e1e00c13.png" size="1839" name="example.png" />⤶
⤶
<output><image src="8e3f9/8d81148e1e00c13.png"/>⤶
SGVsbG8gV29yZCAh ⤶
</output>⤶
</example>⤶