Encrypt android database without using 3rd party jars or field by field encryption
I have been working on a task assigned by my senior where i need to encrypt my application database but not allowed to do any of the following things:
- no use of 3rd party jar files (guardian project or something)
- cannot encrypt field-by-field encryption
I just have to encrypt and decrypt my database file through my application but excluding above conditions.
If anybody has done this, please lemme know anything you can tel me. And i wo开发者_JAVA百科uld like to tell you as per my senior it is possible to encrypt database, so there is no question whether it is possible or not without using 3rd party jar files or something.
I just have to encrypt and decrypt my database file through my application but excluding above conditions.
This is not possible given your restrictions, unless you rebuild the firmware with an encryption-enabled copy of SQLite (and I do not know if that is possible either).
Well you could use the android Cipher class. This link might help you
http://www.helloandroid.com/tutorials/encrypting-your-data
精彩评论