diff --git a/mirai-core-utils/src/androidMain/kotlin/Actuals.kt b/mirai-core-utils/src/androidMain/kotlin/Actuals.kt index bd708833e..27ac0545d 100644 --- a/mirai-core-utils/src/androidMain/kotlin/Actuals.kt +++ b/mirai-core-utils/src/androidMain/kotlin/Actuals.kt @@ -17,11 +17,11 @@ import androidx.annotation.RequiresApi public actual fun ByteArray.encodeBase64(): String { - return Base64.encodeToString(this, Base64.DEFAULT) + return Base64.encodeToString(this, Base64.NO_WRAP) } public actual fun String.decodeBase64(): ByteArray { - return Base64.decode(this, Base64.DEFAULT) + return Base64.decode(this, Base64.NO_WRAP) } @RequiresApi(Build.VERSION_CODES.N)