Base64Decode: Difference between revisions
From Onset Developer Wiki
FlyingFork (talk | contribs) No edit summary |
FlyingFork (talk | contribs) No edit summary |
||
Line 12: | Line 12: | ||
== Example == | == Example == | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
local encoded = Base64Encode("Placeholder") -- encodes string "Placeholder" | local encoded = Base64Encode("Placeholder") -- encodes string "Placeholder" | ||
local decoded = Base64Decode(encoded) | local decoded = Base64Decode(encoded) -- returns "Placeholder" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[Base64Encode]] | * [[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"