首页 > 解决方案 > SQL Server 始终加密连接字符串 ASP.NET

问题描述

Always Encrypted 使用 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=@@@@@@@@

在 Visual Studio 2019 中使用它时,它会弹出一个对话框,要求输入密码。

标签: c#sql-serverencryptioncryptoapialways-encrypted

解决方案


推荐阅读