0

I'm using SQLite database in my application and I need to protect the SQLite file. What's the best way to protect it?

  1. Password protected?
  2. DB Encryption?
Clover
  • 23
  • 3
Suresh
  • 1,199
  • 2
  • 12
  • 36
  • may be this [link](https://www.zetetic.net/sqlcipher/ios-tutorial/) helps you – Anbu.Karthik Mar 26 '15 at 05:01
  • possible duplicate of [Protect an sqlite file on IOS](http://stackoverflow.com/questions/6457918/protect-an-sqlite-file-on-ios) – Tapas Pal Mar 26 '15 at 05:37
  • Protection in below scenario. 1. Unzip MyApp.ipa 2. With finder click "Show Package Contents" Here i am able to see My database file. Now how can i prevent it a) Password protection b) Encryption – Suresh Mar 26 '15 at 07:17
  • If you want to protect the data "at rest" encrypt the file. – zaph Mar 26 '15 at 11:49

1 Answers1

0

There is a proprietary extension for SQLite available that provides encryption: The SQLite Encryption Extension (SEE)

If the core data is precious, you should consider obtaining a license.

Alternatively, you can write a Virtual Filesystem Module which allows you to have code between database engine and file storage and implement some kind of encryption there.

Zuppa
  • 467
  • 5
  • 16