Question

I have recently started to develop applications for iPhone with MonoTouch and have to store user names and passwords on the phone. I want to use the keychain for this but can't find anything in the MonoTouch documentation about it. Is it possible to use it directly with MonoTouch or will I have to write some C++/C/Objective-C code that uses the keychain and export it to MonoTouch?

Was it helpful?

Solution

According to the current documentation, there is no bindings for the keychain.

Your solutions are:

  • post a request to Novell for the bindings.
  • write a .NET wrapper around the KeyChain function by accessing them through P/Invoke. The following page gives you some hint on how to do it. If you need some direction on how to provide an object-oriented wrapper for KeyChain, you can take some inspiration from the EMKeyChain library.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top