base64encode
Standard Base64 helpers.
Syntax
base64encode(str: any) -> string
Parameters
| Parameter | Type | Description |
|---|---|---|
str | any | The str value used by the call. |
Returns
| Type | Description |
|---|---|
string | String |
Description
base64encode is part of the Core functions library. Core globals are installed in every executor thread and drive output, scheduling and identity.
The operation is performed immediately using the arguments supplied at the call site.
The aliases base64decode(str) resolve to the same implementation.
Example
local encoded = base64encode("hello")
print(encoded, base64decode(encoded))
Notes
- Aliases:
base64decode(str). - Core globals are available in every script.