惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

aimingoo的专栏
aimingoo的专栏
宝玉的分享
宝玉的分享
博客园 - 【当耐特】
博客园 - 司徒正美
L
LangChain Blog
有赞技术团队
有赞技术团队
大猫的无限游戏
大猫的无限游戏
Stack Overflow Blog
Stack Overflow Blog
Engineering at Meta
Engineering at Meta
U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
博客园 - 叶小钗
H
Hackread – Cybersecurity News, Data Breaches, AI and More
J
Java Code Geeks
月光博客
月光博客
量子位
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
Google DeepMind News
Google DeepMind News
云风的 BLOG
云风的 BLOG
D
DataBreaches.Net

博客园 - Niko

SQLServer使用注意规范 . windows2008 导出Excel 配置。 NHibernate.AdoNet.TooManyRowsAffectedException: Unexpected row count: 19; expected: 1 安装sql server 2008 注意事项 - Niko 添加 程序映射 链接服务器"(null)"的 OLE DB 访问接口 Microsoft Office Excel 不能访问文件 Win2008 检索 COM 类工厂中 CLSID 为 {000209FF-0000-0000-C000-000000000046} 的组件时失败解决方法 excel 汇入, SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEMENT'OpenRowset/OpenDatasource' 的访问 - Niko 卸载 vs 2008 ASP.net 打印页面内容 - Niko - 博客园 asp.net 异步调用 MSSQL2005 建立分区 Asp.net2.0 defaultButton 不支持firefox解决方法 Rational Rose 安装破解, 和常见问题解决 Gridview 选中checkbox 时, 展开子节点, 同时选中父节点 - Niko Grid view 级联选择 - Niko Database diagram support objects cannot be installed because this database does not have a valid owner. ASP.NET动态生成控件问题。 - Niko - 博客园
Web.config 数据库连接字符串加密
Niko · 2011-07-05 · via 博客园 - Niko

1. web.config

 <configProtectedData>
    <providers>
      <clear />
      <add name="ConnectionStringsKeyProvider" type="System.Configuration.RsaProtectedConfigurationProvider, System.Configuration, Version=2.0.0.0,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" keyContainerName="NLYConnectionStringsKey" useMachineContainer="true"/>
    </providers>
  </configProtectedData>
  <connectionStrings >
    <add name="connStr" connectionString="server=SVCTAG-FF3MD2X\SQLEXPRESS; user id=sa; password=aaaaaa; database=NLY"
   providerName="System.Data.SqlClient" />
  </connectionStrings>

2. Entry.cmd

cd\
c:
cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
aspnet_regiis -pc "NLYConnectionStringsKey" -exp
aspnet_regiis -pa "NLYConnectionStringsKey" "NT AUTHORITY\NETWORK SERVICE"
aspnet_regiis -pef "connectionStrings" "D:\Work\Project\部署注意事项\加密解密文件\NLY"  -prov "ConnectionStringsKeyProvider"
pause

3.Dentry.cmd

cd\
c:
cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
aspnet_regiis.exe -pdf "connectionStrings" "D:\Work\Project\部署注意事项\加密解密文件\NLY"
pause

4.Export.cmd

d\
c:
cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
aspnet_regiis -px "NLYConnectionStringsKey" "D:\Work\Project\部署注意事项\加密解密文件\NLY\PublicKey.xml"
aspnet_regiis -px "NLYConnectionStringsKey" "D:\Work\Project\部署注意事项\加密解密文件\NLY\AllKey.xml" -pri
aspnet_regiis -pz "NLYConnectionStringsKey"
pause

5.Import.cmd

cd\
c:
cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
aspnet_regiis -pi "NLYConnectionStringsKey" "D:\Work\Project\部署注意事项\加密解密文件\NLY\PublicKey.xml"
aspnet_regiis -pa "NLYConnectionStringsKey" "NT AUTHORITY\NETWORK SERVICE"
pause