I've got a bit of Mac code that needs to store, access and update passwords in order to connect users with a web API. The right place to put this information should be the Mac Keychain, but there doesn't seem to be a cocoa interface (see this answer) -- is this still correct?
I've looked at Apple's Keychain documentation, and the API seems incredibly clunky. I can store to it and retrieve records, but anything more complex seems to require a lot of thought as to what might go wrong (see this list of error codes).
Is there a better interface to the Mac keychain, aside from slogging through the C code? The closest I've come is EMKeychain but it seems like it needs a bit of work (e.g. no error handling code aside from spitting to the console).
Late to the party, as always, but I can recommend UICKeyChainStore.
You should take a look at SSKeychain. Works great, awesome code.
Too late answer but would be good for future help. Below is what I did to save the password in Keychain of Mac
For saving password
for fetching the password
When we run the app to fetch password, we will get user action prompt for keychain access.