How to decode password by base64_decode in android

0
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..

Attachments

1.png 2.png
0
Kprabhu Got | 146 xp

Do something like this