Re: Cocoa and OS X Security Frameworks
Re: Cocoa and OS X Security Frameworks
- Subject: Re: Cocoa and OS X Security Frameworks
- From: Jens Alfke <email@hidden>
- Date: Sun, 09 Feb 2014 17:13:31 -0800
On Feb 9, 2014, at 2:33 PM, SevenBits <email@hidden> wrote:
> The idea of what I’m trying to do is create some simple encrypted files on the user’s hard drive to hold secret/confidential user data related to my application.
How simple? If it's just passwords, or a few hundred bytes of other confidential stuff, you can store the data directly in the keychain. This has the advantages that (a) it's automatically encrypted for you; (b) most of the time the user won't be bugged to enter a password because the keychain's already been unlocked; (c) it can be synced to other Macs if the user's enabled keychain sync.
Otherwise, the RNCryptor library that Giacomo linked to looks pretty solid. If you go that route, you can still store the encryption password in the keychain so the user doesn't have to deal with it every time the app launches.
—Jens
_______________________________________________
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