nielsmouthaan / SecureNSUserDefaults

NSUserDefaults category for iOS and Mac OS X with additional methods to securely save data using strong AES 256-bit encryption.
MIT License
179 stars 26 forks source link

Cannot receive object from encrypted data storage #4

Closed AaoIi closed 9 years ago

AaoIi commented 9 years ago

I've set the secret in AppDelegate where it should be shard in the app in didFinishLaunchingWithOptions. NSUserDefaults.standardUserDefaults().setSecret("....")

i have defined three viewControllers and I'm transferring the encrypted data between them and accessing it. when i try to get the secretObjectForKey it gives me the following error :

Cannot receive object from encrypted data storage: -[__NSCFArray length]: unrecognized selector sent to instance 0x17426b840