encodeWebSafe

expect fun encodeWebSafe(string: String): String

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.


expect fun encodeWebSafe(data: ByteArray): ByteArray

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.

actual fun encodeWebSafe(string: String): String

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.


actual fun encodeWebSafe(data: ByteArray): ByteArray

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.

actual fun encodeWebSafe(string: String): String

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.


actual fun encodeWebSafe(data: ByteArray): ByteArray

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.

actual fun encodeWebSafe(string: String): String

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.


actual fun encodeWebSafe(data: ByteArray): ByteArray

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.