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

  • Prev by Date: Re: NSBundle dynamic loading problem
  • Next by Date: RE: NSBundle dynamic loading problem
  • Previous by thread: Adding password for a file to keychain
  • Next by thread: Re: Adding password for a file to keychain
  • Index(es):
    • Date
    • Thread