util.crypto.decode
Shared
Decodes a base64 string
Syntax
local result = util.crypto.decode(
input
)Parameters
| Type | Name | Description |
|---|---|---|
string | input | Encoded string to decode |
Returns
| Type | Name | Description |
|---|---|---|
string | bool | result | Decoded string on successful execution, false otherwise |
Examples
local input = "SGVsbG8gV29ybGQ="
core.engine.print("info", "Input:", input)
core.engine.print("info", "Decoded:", util.crypto.decode(input))