encodeWebSafe

Encode the provided string into a Base64-encoded string, omitting characters which are unsafe for use on the web, including padding characters, which are not emitted.

Return

Base64-encoded string, using only web-safe characters.

Parameters

string

String to encode with web-safe Base64.


Encode the provided data into a Base64-encoded set of bytes, omitting characters which are unsafe for use on the web, including padding characters, which are not emitted.

Return

Base64-encoded bytes, using only web-safe characters.

Parameters

data

Raw bytes to encode with web-safe Base64.