Base64Decode: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 6: Line 6:


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


{{FuncReturnValue|Text string.}}
{{FuncReturnValue|Text string.}}
Line 12: Line 12:
== Example ==
== Example ==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
__EDIT_ME__
local encoded = Base64Encode("Placeholder") -- encodes string "Placeholder"
local decoded = Base64Decode(encoded)      -- returns "Placeholder"
</syntaxhighlight>
</syntaxhighlight>


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

Revision as of 15:58, 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