Skip to content

Commit 4033cd7

Browse files
committed
fix: rsa base64Decode change logic
1 parent 05c9b62 commit 4033cd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/cryptorsa/CryptoRsa.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ class CryptoRsa(originReactContext: ReactApplicationContext, keySize:Int?) {
259259
@Throws(Base64DataException::class)
260260
fun base64Decode(base64String: String): String? {
261261
val originValues = Base64.decode(base64String,Base64.DEFAULT)
262-
return originValues.toString()
262+
return String(originValues,Charsets.UTF_8)
263263
}
264264

265265
@Throws(Base64DataException::class)

0 commit comments

Comments
 (0)