• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Adding password for a file to keychain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Adding password for a file to keychain
      • From: j o a r <email@hidden>
References: 
 >Adding password for a file to keychain (From: Glen Simmons <email@hidden>)
 >Re: Adding password for a file to keychain (From: j o a r <email@hidden>)

  • Prev by Date: RE: NSBundle dynamic loading problem
  • Next by Date: Re: Using the QuickLite framework when building a Foundation tool
  • Previous by thread: Re: Adding password for a file to keychain
  • Next by thread: Re: Adding password for a file to keychain
  • Index(es):
    • Date
    • Thread