C#创建数字证书并导出为pfx,并使用pfx进行非对称加解密

上传者: luminji | 上传时间: 2019-12-21 18:51:39 | 文件大小: 58KB | 文件类型: rar
1:调用.NET2.0的MAKECERT创建含有私钥的数字证书,并存储到个人证书区; 2:将该证书导出为pfx文件,并为其指定一个用来打开pfx文件的password; 3:读取pfx文件,导出pfx中公钥和私钥; 4:用pfx证书中的公钥进行数据的加密,用私钥进行数据的解密; 详细请看:http://blog.csdn.net/luminji/archive/2009/03/05/3960308.aspx

文件下载

资源详情

[{"title":"( 23 个子文件 58KB ) C#创建数字证书并导出为pfx,并使用pfx进行非对称加解密","children":[{"title":"WindowsFormsAppPfs","children":[{"title":"WindowsFormsAppPfs","children":[{"title":"WindowsFormsAppPfs.csproj <span style='color:#111;'> 3.33KB </span>","children":null,"spread":false},{"title":"Form1.cs <span style='color:#111;'> 8.49KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"WindowsFormsAppPfs.vshost.exe <span style='color:#111;'> 13.99KB </span>","children":null,"spread":false},{"title":"WindowsFormsAppPfs.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"WindowsFormsAppPfs.exe <span style='color:#111;'> 22.00KB </span>","children":null,"spread":false},{"title":"WindowsFormsAppPfs.pdb <span style='color:#111;'> 35.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"WindowsFormsAppPfs.csproj.GenerateResource.Cache <span style='color:#111;'> 847B </span>","children":null,"spread":false},{"title":"WindowsFormsAppPfs.exe <span style='color:#111;'> 22.00KB </span>","children":null,"spread":false},{"title":"WindowsFormsAppPfs.csproj.FileListAbsolute.txt <span style='color:#111;'> 777B </span>","children":null,"spread":false},{"title":"Refactor","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"WindowsFormsAppPfs.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"WindowsFormsAppPfs.pdb <span style='color:#111;'> 35.50KB </span>","children":null,"spread":false},{"title":"WindowsFormsAppPfs.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 479B </span>","children":null,"spread":false},{"title":"Form1.Designer.cs <span style='color:#111;'> 28.60KB </span>","children":null,"spread":false},{"title":"DataCertificate.cs <span style='color:#111;'> 8.60KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false}],"spread":true},{"title":"WindowsFormsAppPfs.suo <span style='color:#111;'> 19.00KB </span>","children":null,"spread":false},{"title":"WindowsFormsAppPfs.sln <span style='color:#111;'> 944B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • tiantian116646 :
    好用好用,解决问题了。
    2019-11-14
  • Z-INDEX :
    谢谢分享了!
    2019-10-19
  • spedit :
    有用,学习了。
    2019-03-26
  • tudiy :
    挺好的,学习了
    2019-01-17
  • xu670205545 :
    还行,适合于初级入门的学习.
    2018-12-03

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明