• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Secured storage on device...

Hi,
I want to protect SQLite database from hacker (in case of rooted phones).
So I encrypt data using the key. Where should I put this key ? as I can't put in SQLite db.

Is "SharedPreference" is visible in case of phone is rooted ? How should I maintain the key that is not visibile/accessible to any party.

Thanx.
 
Hi,
I want to protect SQLite database from hacker (in case of rooted phones).
So I encrypt data using the key. Where should I put this key ? as I can't put in SQLite db.

Is "SharedPreference" is visible in case of phone is rooted ? How should I maintain the key that is not visibile/accessible to any party.

Thanx.

You would need to look at a class called Sharedpreferences. Use google and just search for it, you'll probably find quite a few tutorials.
 
You would need to look at a class called Sharedpreferences. Use google and just search for it, you'll probably find quite a few tutorials.

Thx for reply.
"SharedPreferences" and "Sqlite" is specific and private to application as per google docs for normal phone. but what is phone is rooted ?
I already gone through "SharedPreferences" but in case phone is rooted then that "SharedPreferences" is visibile to party ?

Thnx Graham.
 
Back
Top Bottom