3

i am able to create sqlite database using firefox addon and use database in iPhone. Now I want to give the the password to database and used it in my iPhone application. i tried a lot on google to search the proper way yo create password protected database but still no success.

anybody have idea that how can create the password protected sqlite database and how can we use it in iPhone

Rupesh
  • 7,866
  • 11
  • 41
  • 58
  • See also [Encrypting SQLite Database file in iPhone OS](http://stackoverflow.com/questions/929744/encrypting-sqlite-database-file-in-iphone-os) – Brad Larson Jan 01 '11 at 23:22

2 Answers2

3

Try SQLiteEncrypt.The SQLiteEncrypt is an AES encryption embedded SQLite database engine through which you can encrypt and decrypt your SQLite database file. When set a password key into your database file, content is no longer stored in cleartext, so that we achieve the purpose of data protection.

But it is not free.

Note: But IT is not for iOS (thanks brad to pointed it out).

*Edit***

For iPhone you can use SQLCIPHER which is an open source full database encryption for sqlite.

raaz
  • 12,410
  • 22
  • 64
  • 81
0

Unfortunately, there is no free solution for doing that. There are some commercial applications, which allows sqlite database encryption. Also, there is virtual filesystem support in SQLite, where you can change calls which reads/writes data to SQLite database, however that will require some coding.

Nickolay Olshevsky
  • 13,706
  • 1
  • 34
  • 48