Skip to main content
Version: v4.24

encode_base64

Encodes bytes as Base64.

encode_base64(bytes: blob|string) -> string

Description

Encodes bytes as Base64.

bytes: blob|string

The value to encode as Base64.

Examples

Encode a string as Base64

from {bytes: "Tenzir"}
encoded = bytes.encode_base64()
{bytes: "Tenzir", encoded: "VGVuemly"}

See Also

decode_base64