加密

base64_decode

解码 Base64 编码的字符串。

语法

base64_decode(data: string): string
别名 base64decodebase64.decodecrypt.base64.decodecrypt.base64_decodecrypt.base64decode

参数

名称类型描述
datastringBase64 编码的字符串。

返回值

名称类型描述
decodedstringBase64 解码后的字符串。

说明

解码 Base64 编码的字符串。

使用 1 个参数调用: data。参数表会说明哪些值必填,哪些值只用于细化行为。

返回 decoded (string)。使用返回表区分成功值、nil 结果和可恢复错误。

示例

使用占位值的示例调用。

local result = base64_decode("example")
print(result)