c# - 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 中使用它时,它会弹出一个对话框,要求输入密码。
解决方案
推荐阅读
- visual-studio - Visual Studio 引用搜索返回重复的结果
- python - 如何将复数分配给numpy数组
- python - python中列的增量值
- typescript - 在实现 express-validator 命令式验证时,正确的验证类型是什么?
- c++ - 静态成员函数使用相同名称时模板类型名称错误
- python - 在 Python 中使用特征值约束优化目标函数
- python-3.x - 调试一段很简单的python代码,看到了意想不到的结果,只想知道为什么会这样
- unity3d - 物理相机视口应根据 UI 调整以适应不同的分辨率
- python - 迁移到 Ubuntu 后查询的 SQL ROW_NUMBER() 问题
- php - 如何在 Debian 9 机器上为 PHP 7.3 安装 php-fpm?