Avoid using encoder flag to decode Base64 string...

This commit is contained in:
Benoit Marty 2020-02-27 18:13:42 +01:00
parent ceab0903cf
commit 8299487f6d

View File

@ -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)
}