encodeToBase64

fun ByteArray.encodeToBase64(): String

Encode the content of this byteArray to base64.

Receiver

ByteArray to be encoded to base64.

Return

The base64 encoded string.


fun String.encodeToBase64(): String

Encode this string to base64.

Receiver

String to be encoded to base64.

Return

The base64 encoded string.