encode

fun encode(src: ByteArray, url: Boolean = false, doPadding: Boolean = false): String

Base64 encodes src to a String. Set url to true if the Base64Url encoding character set should be used. If url is true, doPadding can optionally be set to true to include padding characters in the output. doPadding is ignored if url is false.