Base64Encode: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Info|Function|Server|1.0}}
{{Info|Function|Server & Client|1.0}}
 
{{FuncDescription|Encodes the specified text in the Base64 format.}}


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


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


{{FuncReturnValue|__MISSING_DOC__}}
{{FuncReturnValue|}}
The base64 string


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


{{RelatedFunctions}}
{{RelatedFunctions}}
__MISSING_DOC__
* [[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