Yuari
Documentation
Docs/Crypt/base64encode

base64encode

Base64 helpers. Also base64_encode / base64_decode, base64.encode / base64.decode, and crypt.base64encode / crypt.base64decode.

Syntax

base64encode(data: string) -> string

Parameters

ParameterTypeDescription
datastringThe data payload to process or send.

Returns

TypeDescription
stringThe returned string.

Description

base64encode is part of the Crypt library. Crypt functions process data locally. Keys, hashes and encrypted buffers remain inside the process.

The operation is performed immediately using the arguments supplied at the call site.

The aliases base64decode(data) resolve to the same implementation.

Example

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

Notes

  • Aliases: base64decode(data).
  • Never log keys or decrypted buffers in production scripts.