如何存储在记录在用户的Windows应用程序对于当前用户设置(用户名,密码) [英] How to store user settings (username, password) in a Windows application for the current logged in user

查看:385
本文介绍了如何存储在记录在用户的Windows应用程序对于当前用户设置(用户名,密码)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在我的团队正在研究涉及Windows应用程序(C#)的一个项目。

Now my team is working on a project involving a Windows application (C#).

该应用程序保存在客户端计算机的用户名和密码的选项当前登录的用户。用户可以启动,而无需输入用户名和密码的应用程序。请检查我的要求快照。

The application has a option for saving the username and password in the client machine for the current logged in user. The user can start the application without entering username and password. Please check the snapshot of my requirement.

请提出一个很好的例子或参考。

Please suggest a good example or reference.

推荐答案

要坚持轻松的用户凭据,并以安全的方式,你可以使用的 ConfigurationManager中类,使用安全密码。SecureString的类,然后在密码使用空间加密工具,它

To persist user credentials easily and in a secure way you can write them to the application configuration file using the ConfigurationManager class, secure the password using the SecureString class and then encrypt it using tools in the Cryptography namespace.

编辑:这可能帮助:的加密在.NET app.config文件密码

This might help: Encrypting Passwords in a .NET app.config File

这篇关于如何存储在记录在用户的Windows应用程序对于当前用户设置(用户名,密码)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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