这是此问题.
如果我要使用Keychain Services存储用户的用户名和密码,我是否应该简单地使用NSSecureTextField创建自己的提示视图作为密码,然后在用户输入信息后将其传递给Keychain Services API( 我找到了这个)?
If I'm going to store a user's username and password with Keychain Services, should I simply create my own prompt view with an NSSecureTextField for the password, and then once the user enters their info pass it to a Keychain Services API (I found this one)?
我担心Apple不希望我直接与用户交互敏感数据.
I'm concerned Apple won't like me interacting with a users sensitive data directly like that.
推荐答案看来,Apple的Autoingest工具使用用户密码的唯一方法是直接在代码中处理密码.我确保保存的时间不要超过需要的时间,当然,我将其存储在钥匙串服务中以确保其安全.
It appears that the only way use a user's password for Apple's Autoingest tool is to handle the password directly in code. I make sure to not hold onto it longer than I need it, and of course I store it with Keychain Services in order to keep it secure.
更多推荐
提示用户输入密码的正确方法是什么?
发布评论