encodeToString

expect open override fun encodeToString(string: String): String

Encode the provided string into a Base64-encoded string, which includes padding if necessary.

Return

Base64-encoded string.

Parameters

string

String to encode with Base64.


expect open override fun encodeToString(data: ByteArray): String

Encode the provided data into a Base64-encoded string, which includes padding if necessary.

Return

Base64-encoded string.

Parameters

data

Raw bytes to encode into a Base64 string.

actual open override fun encodeToString(string: String): String

Encode the provided string into a Base64-encoded string, which includes padding if necessary.

Return

Base64-encoded string.

Parameters

string

String to encode with Base64.


actual open override fun encodeToString(data: ByteArray): String

Encode the provided data into a Base64-encoded string, which includes padding if necessary.

Return

Base64-encoded string.

Parameters

data

Raw bytes to encode into a Base64 string.