C# SQL Server始终加密连接字符串ASP.NET
始终加密使用Windows证书存储中的证书来解密SQL Server中的数据。此证书由使用密码的Microsoft CryptoAPI私钥保护 在连接字符串中使用该密码的最佳实践是什么 不带密码的连接字符串如下所示: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
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版本是什么?您将连接字符串存储在哪里?这些可能是需要考虑的有用细节。