Base64 module

base64url_encode

procedure · 1 overloadSource

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
ExampleOpen in playground ↗
encoded := base64url_encode("\xfb\xff");
defer free(encoded);
assert(encoded == "-_8");

See also