提示用户输入密码的正确方法是什么? [英] Whats the Correct Way to Prompt a User for their Password?

查看:129
本文介绍了提示用户输入密码的正确方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是此如果我要使用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.

这篇关于提示用户输入密码的正确方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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