Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# SQL Server始终加密连接字符串ASP.NET_C#_Sql Server_Encryption_Cryptoapi_Always Encrypted - Fatal编程技术网

C# SQL Server始终加密连接字符串ASP.NET

C# SQL Server始终加密连接字符串ASP.NET,c#,sql-server,encryption,cryptoapi,always-encrypted,C#,Sql Server,Encryption,Cryptoapi,Always Encrypted,始终加密使用Windows证书存储中的证书来解密SQL Server中的数据。此证书由使用密码的Microsoft CryptoAPI私钥保护 在连接字符串中使用该密码的最佳实践是什么 不带密码的连接字符串如下所示: Data Source=<ip,port>;Initial Catalog=@@@@@@;Column Encryption Setting = Enabled;Persist Security Info=false;Encrypt=True;TrustServerCe

始终加密使用Windows证书存储中的证书来解密SQL Server中的数据。此证书由使用密码的Microsoft CryptoAPI私钥保护

在连接字符串中使用该密码的最佳实践是什么

不带密码的连接字符串如下所示:

Data Source=<ip,port>;Initial Catalog=@@@@@@;Column Encryption Setting = Enabled;Persist Security Info=false;Encrypt=True;TrustServerCertificate=True;User ID=@@@@;Password=@@@@@@@@
数据源=;初始目录=@@@@@;列加密设置=已启用;持久安全信息=false;加密=真;TrustServerCertificate=True;用户ID=@@@;密码=@@@@@@@@

在Visual Studio 2019中使用此选项时,会弹出一个询问密码的对话框。

我不完全确定这是否重要,但为了清楚起见:您运行的ASP.NET版本是什么?您将连接字符串存储在哪里?这些可能是需要考虑的有用细节。