• 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
Using Keychain for storing archived object ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using Keychain for storing archived object ?


  • Subject: Using Keychain for storing archived object ?
  • From: "Kubernan @ 10191 Technologies" <email@hidden>
  • Date: Fri, 26 Nov 2004 22:31:11 +0100

Hello,

My application creates an object that is the result of NSKeyedArchiver in NSData type.
Instead of saving this object in an unsafe external file (using [NSData writeToFile ...] )
i thought to use KeyChain as a secured container such as :
myObject -> archiver -> NSData -> store in keyChain
The object itself is small enough (4ko).

I tried some keyChain API - as a newbie - (such as SecKeychainItemCreateFromContent or SecKeychainAddGenericPassword...),
i can create a keyChain item that (seems) contains my NSData, i can retrieve the item and the data
but the NSKeyedUnarchiver operation on that data totally fails.

Can you tell me if storing NSData type via KeyChain is an available solution ?
If not, what will be the best solution for my need ?

Thx a lot for you help,
K.
 _______________________________________________
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: Using Keychain for storing archived object ?
      • From: Marc Liyanage <email@hidden>
    • Re: Using Keychain for storing archived object ?
      • From: Darkshadow <email@hidden>
  • Prev by Date: Re: Cocoa-dev Digest, Vol 1, Issue 330
  • Next by Date: Re: Using an NSView as a sheet
  • Previous by thread: Re: Cocoa-dev Digest, Vol 1, Issue 330
  • Next by thread: Re: Using Keychain for storing archived object ?
  • Index(es):
    • Date
    • Thread