util.crypto.decode

Shared

Decodes a base64 string


Syntax

local result = util.crypto.decode(
    input
)

Parameters

TypeNameDescription
stringinputEncoded string to decode

Returns

TypeNameDescription
string | boolresultDecoded string on successful execution, false otherwise

Examples

Decodes an input string
local input = "SGVsbG8gV29ybGQ="

core.engine.print("info", "Input:", input)
core.engine.print("info", "Decoded:", util.crypto.decode(input))

On this page