语法
base64_decode(data: string): string别名
base64decodebase64.decodecrypt.base64.decodecrypt.base64_decodecrypt.base64decode参数
| 名称 | 类型 | 描述 |
|---|---|---|
data | string | Base64 编码的字符串。 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
decoded | string | Base64 解码后的字符串。 |
说明
解码 Base64 编码的字符串。
使用 1 个参数调用: data。参数表会说明哪些值必填,哪些值只用于细化行为。
返回 decoded (string)。使用返回表区分成功值、nil 结果和可恢复错误。
示例
使用占位值的示例调用。
local result = base64_decode("example")
print(result)