Base64Encode: Difference between revisions
From Onset Developer Wiki
No edit summary |
FlyingFork (talk | contribs) No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Info|Function|Server & Client|1.0}} | {{Info|Function|Server & Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Encodes the specified text in the Base64 format.}} | ||
{{FuncSyntax|Base64Encode(text)}} | {{FuncSyntax|Base64Encode(text)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|text| | {{FuncParam|text|the text.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|}} | ||
The base64 string | |||
== Example == | == Example == | ||
<syntaxhighlight lang="lua"> | |||
local encoded = Base64Encode("Placeholder") | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[Base64Decode]] |
Latest revision as of 15:58, 2 August 2021
Description
Encodes the specified text in the Base64 format.
Syntax
Base64Encode(text)
Parameters
- text
the text.
Return Value
The base64 string
Example
local encoded = Base64Encode("Placeholder")