Ludwig.Base64

This module contains base64 conversion functions.

Module Members

decode

(Function)

Convert base64-encoded bytes into a string, or ‘None’ if the decoding fails.

Type Signature

 fun (String) -> Optional<Bytes>
Argument: base64

String The string to decode.

Type: String

Returns:

The bytes after decoding.

Type: Optional<Bytes>

encode

(Function)

Convert raw bytes into a base64-encoded string.

Type Signature

 fun (Bytes) -> String
Argument: bytes

The bytes to encode.

Type: Bytes

Returns:

A base64-encoded representation of the passed in bytes.

Type: String