开发者

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:

  1. no use of 3rd party jar files (guardian project or something)
  2. 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜