Re: Encrypting data in a Core Data SQL store for a Mac desktop app
Re: Encrypting data in a Core Data SQL store for a Mac desktop app
- Subject: Re: Encrypting data in a Core Data SQL store for a Mac desktop app
- From: Kyle Sluder <email@hidden>
- Date: Sun, 18 Jul 2010 16:22:13 -0700
On Sun, Jul 18, 2010 at 3:42 AM, Darren Wheatley
<email@hidden> wrote:
> Can anyone give me a pointer on how to encrypt (and use) the data in the
> Core Data sql store of my Mac desktop app? My application has a data store
> that on its own has a value, and I would like to provide at least a basic
> level of protection / deterrent before I release it.
>
> I've Googled for this, and while I find lots of information on encrypting
> Core Data stores for iPhone apps, I can't find a solution for Mac
> applications.
The most direct analogue I would think would be to put the store on an
encrypted disk image. Of course the volume will appear systemwide, but
you could set appropriate read permissions on the disk image's
contents.
Alternatively, you could use a custom NSAtomicStore subclass which you
encrypt when writing it to the filesystem, but that ditches all the
advantages of the SQLite store.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden