提示用户输入密码的正确方法是什么?

编程入门 行业动态 更新时间:2024-10-28 14:24:24
本文介绍了提示用户输入密码的正确方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

这是此问题.

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

更多推荐

提示用户输入密码的正确方法是什么?

本文发布于:2023-11-16 21:42:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1607582.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:输入密码   正确   提示   方法   用户

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!