Re: Looking for guidance re: password/credential storage and Core Data
Re: Looking for guidance re: password/credential storage and Core Data
- Subject: Re: Looking for guidance re: password/credential storage and Core Data
- From: Kyle Sluder <email@hidden>
- Date: Tue, 3 Nov 2009 12:27:23 -0800
On Tue, Nov 3, 2009 at 12:14 PM, Wim Lewis <email@hidden> wrote:
> It's possible to get a persistent reference to a keychain item (a CFData
> blob) using SecKeychainItemCreatePersistentReference() or
> SecItemCopyMatching(kSecReturnPersistentRef=YES, ...). So you could store
> that in Core Data and convert it back to a keychain item ref when you need
> it. (I haven't actually used these APIs so I don't know how functional they
> are. FYI, the unique item identifier you can get from
> SecKeychainItemGetUniqueRecordID() isn't persistent or transportable.)
I'd be concerned about moving the document to another machine. Even
if I have the same username and password in the keychain, the
persistent reference approach won't find it.
--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