Module eco.encoding.base64

Base64 encoding/decoding.

This module provides simple Base64 helpers.

Functions

encode (data) Encode data to Base64.
decode (data) Decode a Base64 string.


Functions

encode (data)
Encode data to Base64.

Parameters:

Returns:

    string Base64 string.
decode (data)
Decode a Base64 string.

On malformed input, returns nil, "input is malformed".

Parameters:

Returns:

    string out Decoded bytes.

Or

  1. nil On malformed input.
  2. string Error message.
generated by LDoc 1.5.0 Last updated 2026-04-09 14:48:22