如何储存密码 [英] How to Store a Password

查看:64
本文介绍了如何储存密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

桌面应用程序存储用于访问远程数据库的用户名和密码的可接受方式是什么?

我已经搜索过,但仅找到有关在数据库中存储密码的文章.

What is the accepted way for a desktop application to store the user name and password that it uses to access a remote database?

I have searched, but found only articles about storing passwords in the database.

推荐答案

让应用程序调用具有已存储密码的Web服务.永远不要将密码存储在用户的计算机上.
Have the application call a web service that has the stored password. Never store passwords on a user''s computer.


我建​​议将密码以连接字符串和加密格式存储在app.config/web.config中. />
请参阅以下文章,这些文章演示如何将加密格式的连接字符串存储在配置文件中

如何:使用数据源控件时保护连接字符串 [ ^ ]

ASP.NET 2.0中Web.config内部的连接字符串加密 [
I would suggest to store the password in the app.config/web.config in the connection string and in the encrypted format.

See the following articles which demonstrates storing connection strings in encrypted format in config file

How to: Secure Connection Strings When Using Data Source Controls [^]

Encryption of Connection Strings Inside the Web.config in ASP.NET 2.0 [^]

Hope you find this as useful.


请查看以下重要提示:
Please check this great tips out: Password Storage: How to do it.[^]


这篇关于如何储存密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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