Any other way to code Base 64 on Android?

0

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

    
asked by Jhony Nava 02.05.2018 в 18:15
source

1 answer

3

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);
    
answered by 02.05.2018 в 18:22