Cryptography

base64_decode

Decodes a base64 encoded string.

Syntax

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

Arguments

NameTypeDescription
datastringThe base64 encoded string.

Returns

NameTypeDescription
decodedstringThe base64 decoded string.

Description

Decodes a base64 encoded string.

Call it with 1 parameter(s): data. The argument table explains which values are required and which ones only refine the behavior.

It returns decoded (string). Use the returns table to separate successful values from nil results and recoverable errors.

Example

Example call with placeholder values.

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