Base64Encode: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Info|Function|Server|1.0}}
{{Info|Function|Server & Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Encodes the specified text in the Base64 format.}}


{{FuncSyntax|Base64Encode(text)}}
{{FuncSyntax|Base64Encode(text)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|text|__EDIT_ME__}}
{{FuncParam|text|the text.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|}}
The base64 string


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="lua">
local encoded = Base64Encode("Placeholder")
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
* [[Base64Decode]]

Latest revision as of 15:58, 2 August 2021

Base64Encode

Type: Function
Context: Server & Client
Introduced: v1.0

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")

See also