Base64Decode: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Info|Function|Server|1.0}}
{{Info|Function|Server & Client|1.0}}
 
{{FuncDescription|Decodes the Base64 into text.}}


{{FuncSyntax|Base64Decode(base64)}}
{{FuncSyntax|Base64Decode(base64)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|base64|__EDIT_ME__}}
{{FuncParam|base64|The base64 string.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Text string.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="lua">
local encoded = Base64Encode("Placeholder")  -- encodes string "Placeholder"
local decoded = Base64Decode(encoded)  -- returns "Placeholder"
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
* [[Base64Encode]]

Latest revision as of 15:59, 2 August 2021

Base64Decode

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

Description

Decodes the Base64 into text.

Syntax

Base64Decode(base64)

Parameters

  • base64
    The base64 string.

Return Value

  • Text string.

Example

local encoded = Base64Encode("Placeholder")  -- encodes string "Placeholder"
local decoded = Base64Decode(encoded)  -- returns "Placeholder"

See also