Base64Decode: Difference between revisions
From Onset Developer Wiki
No edit summary |
FlyingFork (talk | contribs) No edit summary |
||
(6 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"