Re: Using Keychain for storing archived object ?
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