Keychain Services
From IPhone Dev FAQ
(Redirected from How do I use the Keychain to save passwords for my apps)
The keychain API is a weird mess. But fortunately a few people have written a nice article and some higher level code to make using it easier.
and published the source code at GitHub.
