使用钥匙串在xcode 4中存储用户名和密码 [英] Using keychain to store username and password in xcode 4

查看:120
本文介绍了使用钥匙串在xcode 4中存储用户名和密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不想使用NSUserDefaults,因为有人告诉我这不是保存用户名和密码的好方法.

I don't want to use NSUserDefaults as I have been told it's not a good way to save a username and password.

因此,我打算使用钥匙串,但是我以前从未使用过它们.可以请一个简短的例子给我一个例子,还是可以给我指出一个例子的方向?谢谢.

So I was going to use a Keychain, but I have never used them before. Can some one please just a give a quick example of one or point me in the direction of an example ? Thanks.

推荐答案

我使用开源 SSKeychain 钥匙扣使用的C api的包装器.

I Use the open source SSKeychain wrapper around the the C api used by the keychain.

它方便,易用,并且可以在Mac OS和iOS上运行.

It's convenient, easy to use, and works on Mac OS and iOS.

这篇关于使用钥匙串在xcode 4中存储用户名和密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆