Base64 module

base64url_encode

procedureSource

The URL-safe Base64 text of input, with no = padding.

base64url_encode :: (input: string) -> string

The result is allocated with the context allocator. The caller frees it.

Parameters

input: string

Returns

string
Example↗
encoded := base64url_encode("\xfb\xff");
defer free(encoded);
assert(encoded == "-_8");

See also