1. string pfxPath = "D:\\CER\\8000013189_pri.pfx";//私钥路径
  2. string pfxPwd = "217526";//私钥密码
  3. string XmlOrJson = "123456";//待加密数据
  4. string data_content = RSAUtil.EncryptRSAByPfx(XmlOrJson, HttpContext.Current.Server.MapPath(pfxPath), pfxPwd);
  5. Log.LogWrite("====加密串:" + data_content);

具体请参考附件:

文档更新时间: 2019-06-17 17:11   作者:support