java.util.Base64
I want to encode the password to base 64, but I only found that class to code and decode, the problem is that it is only compatible from API 26 and as a minimum compatibility I use API 21
java.util.Base64
I want to encode the password to base 64, but I only found that class to code and decode, the problem is that it is only compatible from API 26 and as a minimum compatibility I use API 21
Response found at StackOverflow:
Use android.util.Base64
to solve your problem, it is available from API 8
data= android.util.Base64.decode(str, android.util.Base64.DEFAULT);