Base64Decode: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncSyntax|Base64Decode(base64)}} {{FuncParameters}} {{FuncReturnValue|__MISSING_DOC__}} == Example == __MISSING_DOC__ {{RelatedFunctions}}..." |
FlyingFork (talk | contribs) No edit summary |
||
(9 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|The base64 string.}} | |||
{{FuncReturnValue| | {{FuncReturnValue|Text string.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="lua"> | |||
local encoded = Base64Encode("Placeholder") -- encodes string "Placeholder" | |||
local decoded = Base64Decode(encoded) -- returns "Placeholder" | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[Base64Encode]] |
Latest revision as of 15:59, 2 August 2021
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"