Garry's Mod Wiki

Revision Difference

util.Base64Encode#527356

<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>Encodes a string</description> <code> local encoded = util.Base64Decode( "Base64 Encoding" ) local encoded = util.Base64Encode( "Base64 Encoding" ) print(encoded) </code> <output>`QmFzZTY0IEVuY29kaW5n`</output> </example>