<@U3RF92CGN> `Base64.getDecoder().decode(encodedSt...
# random
u
@s.luhmirins
Base64.getDecoder().decode(encodedString)
?
s
so basically same as java, thanks
u
if you want you can also define an extension for that:
fun String.fromBase64() = Base64.getDecoder().decode(this)
val decoded = encoded.fromBase64()
s
yeah, I was hoping for some fancy std-lib function 😄
j
do yourself a favor and use https://github.com/square/okio
s
adding full IO library just for base64 decoding is slightly overkill 😄