Skip to content

Commit

Permalink
default encodeBase64/decodeBase64 mode to NO_WRAP on Android (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaodice authored Jul 26, 2023
1 parent 7859767 commit d1295c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mirai-core-utils/src/androidMain/kotlin/Actuals.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d1295c4

Please sign in to comment.