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

Re: Using Keychain for storing archived object ?


  • Subject: Re: Using Keychain for storing archived object ?
  • From: Darkshadow <email@hidden>
  • Date: Fri, 26 Nov 2004 20:28:12 -0500

The keyChain API expects the data it's setting to be a string. You can pass it [data description] and then when you get the object back from the keychain, you can use [string propertyList] to convert that back into a data object. Should work as expected from that point.

Darkshadow (aka Mike Nickerson)

On Nov 26, 2004, at 4:31 PM, Kubernan @ 10191 Technologies wrote:

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.

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

References: 
 >Using Keychain for storing archived object ? (From: "Kubernan @ 10191 Technologies" <email@hidden>)

  • Prev by Date: Odd string becoming nil error...
  • Next by Date: Re: [ANN] Value Converter
  • Previous by thread: Using Keychain for storing archived object ?
  • Next by thread: Re: Using Keychain for storing archived object ?
  • Index(es):
    • Date
    • Thread