ReferenceEncoding and crypto

base64decode

Decodes Base64 text into its original bytes.

Syntax

base64decode(data: string) -> string

Also available as

base64.decodebase64_decodecrypt.base64.decodecrypt.base64_decodecrypt.base64decode

Parameters

ParameterTypeDescription
datastringBase64-encoded text.

Returns

TypeDescription
stringDecoded bytes.

Description

Base64 is a reversible encoding, not encryption. Malformed encoded input is rejected. The decoded string can contain zero bytes and does not have to be UTF-8 text.

Example

local encoded = base64encode("hello")
print(encoded)
print(base64decode(encoded))

These are Game executor contracts. Check build requirements and session lifetimes before using them.