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: j o a r <email@hidden>
- Date: Mon, 19 Dec 2005 22:44:04 +0100
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).
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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