decode

fun decode(str: String, url: Boolean = false): ByteArray

Base64 decodes str to a ByteArray. Set url to true if str is Base64Url encoded.


fun decode(ignoreSpaces: Boolean, str: String, url: Boolean = false): ByteArray


fun decode(src: ByteArray, dst: ByteArray, url: Boolean = false): Int

Base64 decodes src to dst. Set url to true if src is Base64Url encoded.