2

I know that in iOS, if the .sqlite is updated / read by SQL statement, then SQLCipher can be used to do encryption and decryption.

Is there any suggestion if Core Data is used instead ? The requirements are:

  • Core Data is used instead
  • Backup via itune for the application data is still be encrypted

Thanks

SkyEagle888
  • 1,009
  • 2
  • 18
  • 42

1 Answers1

0

If you want the SQLite to be encrypted when the device is locked only, then the on-disk encryption feature introduced in iOS 4 is your answer.

Otherwise, you may need to encrypt stuff programmatically. Cf. Core Data SQLite encryption?.

But AFAIK, there's no built-in support of any SQLite encryption feature in Core Data.

Community
  • 1
  • 1
Mick F
  • 7,312
  • 6
  • 51
  • 98