android - Most secure strategy for mobile database -
i have develop app both ios , android. app uses small sqlite database sensitive data, , depending on user's input, makes process data. after process made, database no longer accessed unless user has enter new input (it's not probable happens).
since database has sensitive data have protect it. know impossible complete protection make life harder possible attacker.
and since don't know security i'm not sure best alternative taking account "difficulty / security".
i've thought in 2 alternatives:
1) include database in apps , encrypt or obfuscate it.
but guess wouldn't difficult database rooted android.
2) have database stored in server, each time user enters input app downloads database, process made , after remove database app.
but process takes 5-10 minutes , maybe time enough database app, have add same protection in 1) plus protection in server.
which best option (difficult / security)? there other options?
i've tried several google searches i'm confuse information , try huge acknowledge of community.
updated:
well, reading answers i'm inclined have backend , not download database app. it's not preferred solution of client, seem best far i'll try convince it. anyway, due type of process app has i'm not sure if it's possible backend. since it's complete different question ask in other thread: https://stackoverflow.com/questions/29942688/remote-sqlite-queries-from-app
new update:
i keep thinking in , don't find solution because process complex. i've thought in know if it's possible or if has no sense (sorry don't know backend development).
server -> sqlite database & php web services
device -> txt file user inputs (20mb)
- device: in device txt file compressed (10mb)
- device: app send txt file server via post web service.
- server: txt file stored in server.
- server: txt file decompressed.
- server: txt file loaded new table inputtable inside sqlite database.
- server: new table userfinaldatatable (almost 10000 rows) created making lots of queries using inputtable , rest of database.
- server: userfinaldatatable converted json , sended device response web service called in step 2.
- device: app receive json , converts useful app.
is possible or (if not all) of steps impossible achieve?
neither. secure way keep database on server , access webservice, proper account authentication. if send data @ client, sufficiently motivated attacker it. in case of whole database file, trivial root device , read it. , if encrpyt it, sqlite won't able read (not mention decryption key local reverse engineered).
Comments
Post a Comment