How do I safely store database login and password in a C# application?(如何在 C# 应用程序中安全地存储数据库登录名和密码?)
问题描述
我有一个需要连接到 SQL 数据库以不时发送一些数据的 C# 应用程序.如何安全地存储用于此作业的用户名和密码?
I have a C# application that needs to connect to an SQL database to send some data from time to time. How can I safely store the username and password used for this job?
推荐答案
那里是一篇很好的 MSDN 文章,介绍了如何在 .Net 中保护连接字符串.
There is a nice MSDN article about how to secure connection strings in .Net.
您可能想要使用受保护配置.
这篇关于如何在 C# 应用程序中安全地存储数据库登录名和密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!