Home How to decode password by base64_decode in Android
Reply: 0

How to decode password by base64_decode in Android

user570
1#
user570 Published in June 19, 2018, 11:56 pm

My password come from database and it's encoded, so how can I decode it in Android side?

SharedPreferences preferences = getSharedPreferences("mypref", MODE_PRIVATE);
id = preferences.getString("id", "");
password=preferences.getString("password","");

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 didn't work.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.325524 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO