toBase64

fun ByteArray.toBase64(url: Boolean = false, doPadding: Boolean = false): String

Encodes a byte array to a Base64 string with options for URL-safe encoding and padding.