Asp.net 在 sessionState 中加密 sqlConnectionString [英] Asp.net encrypt sqlConnectionString in sessionState

查看:45
本文介绍了Asp.net 在 sessionState 中加密 sqlConnectionString的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中使用 sessionState mode = "SQLServer".有没有办法加密web.config中传递的连接字符串?

I am using sessionState mode = "SQLServer" in my application. Is there any way to encrypt the connection string that was passed in web.config?

推荐答案

要加密应用程序之间的 sql server 连接,您只需添加

To encrypt sql server connection between applications you can just add

encrypt=true

到连接字符串,例如:

"Server=##.##.##.##,1092;Database=dbname;uid=username;pwd=password;encrypt=true"

要加密 web.config 中的字符串,请参阅 how-to-encrypt-connection-string-in-web.config

To encrypt the string in web.config see how-to-encrypt-connection-string-in-web.config

这篇关于Asp.net 在 sessionState 中加密 sqlConnectionString的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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