Avoid using encoder flag to decode Base64 string...
This commit is contained in:
parent
ceab0903cf
commit
8299487f6d
@ -33,5 +33,5 @@ fun ByteArray.toBase64NoPadding(): String {
|
||||
}
|
||||
|
||||
fun String.fromBase64NoPadding(): ByteArray {
|
||||
return Base64.decode(this, Base64.NO_PADDING or Base64.NO_WRAP)
|
||||
return Base64.decode(this, Base64.DEFAULT)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user