Re: Adding password for a file to keychain
Re: Adding password for a file to keychain
- Subject: Re: Adding password for a file to keychain
- From: Glen Simmons <email@hidden>
- Date: Mon, 19 Dec 2005 16:05:48 -0600
On Dec 19, 2005, at 3:44 PM, j o a r wrote:
On 19 dec 2005, at 22.11, Glen Simmons wrote:
My document based app has a feature to password protect a document
and add the password to the keychain. What's the best way to
identify the file? I'm currently creating an alias, getting its
data into an NSData and calling -description on that. It works,
but results in an account that's quite long. Any other ideas?
Add an UUID to the data that you store in the file (outside of the
encrypted blob), and then use that UUID to identify the correct
entry in the keychain. In that way you wouldn't have to depend on
your ability to recognize the file on disk (via path / alias or
whatever).
I wish I could. This is a cross-platform app and I can't change the
file format.
Also, now that I've tested some more, the thing I'm doing doesn't
work if the filename has changed. :(
Any other ideas?
Thanks,
Glen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden