iOS Keychain Plugin for PhoneGap
So what is the Keychain? It’s a framework to store data (particularly passwords) securely on Mac OS X and iOS. You really don’t want to store passwords and other sensitive information in HTML5 local or web storage. This is a PhoneGap plugin for iOS that provides access to the Keychain through Javascript. Based on Buzz Andersen’s work – namely SFHFKeychainUtils
View the README and check out the sample app’s index.html for usage. Play around with the Get, Set, and Remove examples, should be self-explanatory.

Advertisement
Very cool!
“should be self-explanatory.” Let’s see how many support posts this generates …
Nick
November 6, 2010 at 12:42 pm
I am having zero luck with this with XCode 4.2 and Phonegap 1.1. I put a breakpoint in set initWithWebView and setForKey and getting no breaks. Is there some other step other than copying the m and h files into plugins and including the js and your index.html in a blank project? Any help would be appreciated.
–Greg
Greg
November 16, 2011 at 2:20 pm
Update: You have to add an entry to your phonegap.plist, add a plugin entry with the key of “SAiOSKeychainPlugin” and the value of “SAiOSKeychainPlugin” and it will start to work. The example on github will not work because these are missing. Seems to be a cut and paste issue with the paypal plugin.
–Greg
Greg
November 16, 2011 at 2:37 pm