How to decode password by base64_decode in android

unnati patadia | 12 xp

down votefavorite

My password come from database and its encoded, so how can i decode it in android side?

SharedPreferences preferences = getSharedPreferences(“mypref”, MODE_PRIVATE);

password is encoded by base64_encode.

I want to decode that password.

I use this :

byte[] decodePassword;

decodePassword= Base64.decode(password, Base64.DEFAULT);

but it din’t work..


1.png 2.png
Kprabhu Got | 158 xp

Do something like this