如何加密连接字符串 [英] how to encrypt a connection string

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

问题描述

我正在使用VB.NET 2015,Windows窗体应用程序,具有某些实体框架的数据集和SQL 2014服务器

I am using VB.NET 2015, windows forms application, datasets with some entity framework and SQL 2014 server

如何加密用于连接到SQL Server的连接字符串(主要是密码)?我在设计器中创建了数据集,并且连接字符串保存在应用程序设置"选项卡中.

How do I encrypt the connection string (primarily the password) used for connecting to SQL Server? I created the datasets in the designer, and the connection string is saved in the application settings tab. 

谢谢. -ME

推荐答案

使用集成安全性.

Use integrated security. 

当它是服务器安全性"时,对连接字符串进行加密是没有意义的.服务器需要未加密的字符串. 

It makes no sense to encrypt a connectionstring when it is Server Security. The Server expects an unencrypted string. 


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

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