简体   繁体   English

从iPhone设置应用访问iOS钥匙串

[英]Access iOS Keychain from iPhone Settings app

Here is my situation... 这是我的情况...

I want my password to be encrypted and at the same time I want it to be in iPhone settings (by adding resource and accessing it through NSUserDefaults), but i think NSUserDefaults saves the password or information in plane text and iPhone takes care of everything in its Settings app if there is any change or whatever. 我希望对密码进行加密,同时希望将其设置在iPhone设置中(通过添加资源并通过NSUserDefaults访问),但是我认为NSUserDefaults将密码或信息保存在平面文本中,iPhone可以处理所有内容如果有任何更改或其他更改,请访问“设置”应用。

How could I make sure that information that I see in the Settings is coming from and going back to Keychain but before that, Is it possible? 如何确定在“设置”中看到的信息来自并返回到“钥匙串”,但在此之前,有可能吗? If not any other way? 如果没有其他方法? May be writing encrypted file? 可能正在写入加密文件? I DO NOT want settings to be in my app. 我不希望设置出现在我的应用程序中。

thank you 谢谢

us 我们

The Keychain service cannot be invoked from within Settings, you need to do this within your app. 无法从“设置”中调用“钥匙串”服务,您需要在应用中执行此操作。 It is good practice to ask users for their password within your app in a login page or UIAlertView at least (like the App Store does). 优良作法是至少在登录页面或UIAlertView中(在App Store中)要求用户在您的应用程序中输入密码。

From the user's point of view, they don't want to have to launch Settings, enter their password, and then launch your app to log in, they want to do it all in one place. 从用户的角度来看,他们不想启动设置,输入密码,然后启动您的应用程序登录,他们希望在一处完成所有操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM