亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? rsa加密解密及rsa簽名和驗(yàn)證.txt

?? RSA加密解密及RSA簽名和驗(yàn)證算法
?? TXT
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
   }
  }
  #endregion

  #region RSA 簽名驗(yàn)證

  public bool SignatureDeformatter(string p_strKeyPublic, byte[] HashbyteDeformatter, byte[] DeformatterData)
  {
   try
   {
    System.Security.Cryptography.RSACryptoServiceProvider RSA = new System.Security.Cryptography.RSACryptoServiceProvider();

    RSA.FromXmlString(p_strKeyPublic);
    System.Security.Cryptography.RSAPKCS1SignatureDeformatter RSADeformatter = new System.Security.Cryptography.RSAPKCS1SignatureDeformatter(RSA);
    //指定解密的時(shí)候HASH算法為MD5
    RSADeformatter.SetHashAlgorithm("MD5");

    if(RSADeformatter.VerifySignature(HashbyteDeformatter,DeformatterData))
    {
     return true;
    }
    else
    {
     return false;
    }
   }
   catch(Exception ex)
   {
    throw ex;
   }
  }

  public bool SignatureDeformatter(string p_strKeyPublic, string p_strHashbyteDeformatter, byte[] DeformatterData)
  {
   try
   {
    byte[] HashbyteDeformatter;

    HashbyteDeformatter = Convert.FromBase64String(p_strHashbyteDeformatter);

    System.Security.Cryptography.RSACryptoServiceProvider RSA = new System.Security.Cryptography.RSACryptoServiceProvider();

    RSA.FromXmlString(p_strKeyPublic);
    System.Security.Cryptography.RSAPKCS1SignatureDeformatter RSADeformatter = new System.Security.Cryptography.RSAPKCS1SignatureDeformatter(RSA);
    //指定解密的時(shí)候HASH算法為MD5
    RSADeformatter.SetHashAlgorithm("MD5");

    if(RSADeformatter.VerifySignature(HashbyteDeformatter,DeformatterData))
    {
     return true;
    }
    else
    {
     return false;
    }
   }
   catch(Exception ex)
   {
    throw ex;
   }
  }

  public bool SignatureDeformatter(string p_strKeyPublic, byte[] HashbyteDeformatter, string p_strDeformatterData)
  {
   try
   {
    byte[] DeformatterData;

    System.Security.Cryptography.RSACryptoServiceProvider RSA = new System.Security.Cryptography.RSACryptoServiceProvider();

    RSA.FromXmlString(p_strKeyPublic);
    System.Security.Cryptography.RSAPKCS1SignatureDeformatter RSADeformatter = new System.Security.Cryptography.RSAPKCS1SignatureDeformatter(RSA);
    //指定解密的時(shí)候HASH算法為MD5
    RSADeformatter.SetHashAlgorithm("MD5");

    DeformatterData =Convert.FromBase64String(p_strDeformatterData);

    if(RSADeformatter.VerifySignature(HashbyteDeformatter,DeformatterData))
    {
     return true;
    }
    else
    {
     return false;
    }
   }
   catch(Exception ex)
   {
    throw ex;
   }
  }

  public bool SignatureDeformatter(string p_strKeyPublic, string p_strHashbyteDeformatter, string p_strDeformatterData)
  {
   try
   {
    byte[] DeformatterData;
    byte[] HashbyteDeformatter;

    HashbyteDeformatter = Convert.FromBase64String(p_strHashbyteDeformatter);
    System.Security.Cryptography.RSACryptoServiceProvider RSA = new System.Security.Cryptography.RSACryptoServiceProvider();

    RSA.FromXmlString(p_strKeyPublic);
    System.Security.Cryptography.RSAPKCS1SignatureDeformatter RSADeformatter = new System.Security.Cryptography.RSAPKCS1SignatureDeformatter(RSA);
    //指定解密的時(shí)候HASH算法為MD5
    RSADeformatter.SetHashAlgorithm("MD5");

    DeformatterData =Convert.FromBase64String(p_strDeformatterData);

    if(RSADeformatter.VerifySignature(HashbyteDeformatter,DeformatterData))
    {
     return true;
    }
    else
    {
     return false;
    }
   }
   catch(Exception ex)
   {
    throw ex;
   }
  }


  #endregion
  #endregion

 }
}


///////////////////////////////////////////////////////////////////////////////////////////////////////////
//frmRSACryptionTest.cs
///////////////////////////////////////////////////////////////////////////////////////////////////////////

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace RSAApplication
{
 /// <summary>
 /// frmRSACryptionTest 的摘要說(shuō)明。
 /// </summary>
 public class frmRSACryptionTest : System.Windows.Forms.Form
 {
  #region 必需的設(shè)計(jì)器變量
  /// <summary>
  /// 必需的設(shè)計(jì)器變量
  /// </summary>
  private System.Windows.Forms.Button btnBuildKey;
  private System.Windows.Forms.TextBox txtKeyPublic;
  private System.Windows.Forms.TextBox txtKeyPrivate;
  private System.ComponentModel.Container components = null;

  private System.Windows.Forms.Button btnRSAEncrypt;
  private System.Windows.Forms.TextBox txtRSADecrypt;
  private System.Windows.Forms.Button btnRSADecrypt;
  private System.Windows.Forms.TextBox txtSource;
  private System.Windows.Forms.TextBox txtRSAEncrypt;
  private System.Windows.Forms.Button btnSignature;

  private System.Windows.Forms.Button btnDeformatter;
  private System.Windows.Forms.Button btnGetHashSignature;
  private System.Windows.Forms.Button btnGetHashDeformatter;
  private System.Windows.Forms.TextBox txtSignature;
  private System.Windows.Forms.TextBox txtGetHashSignature;
  private System.Windows.Forms.TextBox txtGetHashDeformatter;


  private string m_strKeyPrivate = "";
  private string m_strKeyPublic = "";

  private string m_strHashbyteSignature   = "";
  private string m_strHashbyteDeformatter   = "";
  private string m_strEncryptedSignatureData  = "";
  #endregion

  #region 構(gòu)造函數(shù)
  public frmRSACryptionTest()
  {
   //
   // Windows 窗體設(shè)計(jì)器支持所必需的
   //
   InitializeComponent();

   //
   // TODO: 在 InitializeComponent 調(diào)用后添加任何構(gòu)造函數(shù)代碼
   //
  }

  /// <summary>
  /// 清理所有正在使用的資源。
  /// </summary>
  protected override void Dispose( bool disposing )
  {
   if( disposing )
   {
    if (components != null) 
    {
     components.Dispose();
    }
   }
   base.Dispose( disposing );
  }
  #endregion

  #region Windows 窗體設(shè)計(jì)器生成的代碼
  /// <summary>
  /// 設(shè)計(jì)器支持所需的方法 - 不要使用代碼編輯器修改
  /// 此方法的內(nèi)容。
  /// </summary>
  private void InitializeComponent()
  {
   this.btnBuildKey = new System.Windows.Forms.Button();
   this.txtKeyPublic = new System.Windows.Forms.TextBox();
   this.txtKeyPrivate = new System.Windows.Forms.TextBox();
   this.btnRSAEncrypt = new System.Windows.Forms.Button();
   this.txtSource = new System.Windows.Forms.TextBox();
   this.txtRSAEncrypt = new System.Windows.Forms.TextBox();
   this.txtRSADecrypt = new System.Windows.Forms.TextBox();
   this.btnRSADecrypt = new System.Windows.Forms.Button();
   this.btnDeformatter = new System.Windows.Forms.Button();
   this.btnSignature = new System.Windows.Forms.Button();
   this.txtSignature = new System.Windows.Forms.TextBox();
   this.btnGetHashSignature = new System.Windows.Forms.Button();
   this.btnGetHashDeformatter = new System.Windows.Forms.Button();
   this.txtGetHashSignature = new System.Windows.Forms.TextBox();
   this.txtGetHashDeformatter = new System.Windows.Forms.TextBox();
   this.SuspendLayout();
   // 
   // btnBuildKey
   // 
   this.btnBuildKey.Location = new System.Drawing.Point(11, 17);
   this.btnBuildKey.Name = "btnBuildKey";
   this.btnBuildKey.Size = new System.Drawing.Size(77, 34);
   this.btnBuildKey.TabIndex = 0;
   this.btnBuildKey.Text = "產(chǎn)生密鑰";
   this.btnBuildKey.Click += new System.EventHandler(this.btnBuildKey_Click);
   // 
   // txtKeyPublic
   // 
   this.txtKeyPublic.Location = new System.Drawing.Point(137, 11);
   this.txtKeyPublic.Multiline = true;
   this.txtKeyPublic.Name = "txtKeyPublic";
   this.txtKeyPublic.Size = new System.Drawing.Size(602, 44);
   this.txtKeyPublic.TabIndex = 1;
   this.txtKeyPublic.Text = "";
   // 
   // txtKeyPrivate
   // 
   this.txtKeyPrivate.Location = new System.Drawing.Point(137, 58);
   this.txtKeyPrivate.Multiline = true;
   this.txtKeyPrivate.Name = "txtKeyPrivate";
   this.txtKeyPrivate.Size = new System.Drawing.Size(602, 44);
   this.txtKeyPrivate.TabIndex = 2;
   this.txtKeyPrivate.Text = "";
   // 
   // btnRSAEncrypt
   // 
   this.btnRSAEncrypt.Location = new System.Drawing.Point(11, 157);
   this.btnRSAEncrypt.Name = "btnRSAEncrypt";
   this.btnRSAEncrypt.Size = new System.Drawing.Size(77, 34);
   this.btnRSAEncrypt.TabIndex = 3;
   this.btnRSAEncrypt.Text = "RSA加密";
   this.btnRSAEncrypt.Click += new System.EventHandler(this.btnRSAEncrypt_Click);
   // 
   // txtSource
   // 
   this.txtSource.Location = new System.Drawing.Point(137, 108);
   this.txtSource.Multiline = true;
   this.txtSource.Name = "txtSource";
   this.txtSource.Size = new System.Drawing.Size(602, 44);
   this.txtSource.TabIndex = 4;
   this.txtSource.Text = "字串不能太長(zhǎng)j——km,.ewm.m, .vkj中國(guó)福建";
   // 
   // txtRSAEncrypt
   // 
   this.txtRSAEncrypt.Location = new System.Drawing.Point(137, 155);
   this.txtRSAEncrypt.Multiline = true;
   this.txtRSAEncrypt.Name = "txtRSAEncrypt";
   this.txtRSAEncrypt.Size = new System.Drawing.Size(602, 44);
   this.txtRSAEncrypt.TabIndex = 5;
   this.txtRSAEncrypt.Text = "";
   // 
   // txtRSADecrypt
   // 
   this.txtRSADecrypt.Location = new System.Drawing.Point(137, 203);
   this.txtRSADecrypt.Multiline = true;
   this.txtRSADecrypt.Name = "txtRSADecrypt";
   this.txtRSADecrypt.Size = new System.Drawing.Size(602, 44);
   this.txtRSADecrypt.TabIndex = 6;
   this.txtRSADecrypt.Text = "";
   // 
   // btnRSADecrypt
   // 
   this.btnRSADecrypt.Location = new System.Drawing.Point(11, 202);
   this.btnRSADecrypt.Name = "btnRSADecrypt";
   this.btnRSADecrypt.Size = new System.Drawing.Size(77, 34);
   this.btnRSADecrypt.TabIndex = 7;
   this.btnRSADecrypt.Text = "RSA解密";
   this.btnRSADecrypt.Click += new System.EventHandler(this.btnRSADecrypt_Click);
   // 
   // btnDeformatter
   // 
   this.btnDeformatter.Location = new System.Drawing.Point(11, 396);
   this.btnDeformatter.Name = "btnDeformatter";
   this.btnDeformatter.Size = new System.Drawing.Size(77, 34);
   this.btnDeformatter.TabIndex = 10;
   this.btnDeformatter.Text = "RSA驗(yàn)證";
   this.btnDeformatter.Click += new System.EventHandler(this.btnDeformatter_Click);
   // 
   // btnSignature
   // 
   this.btnSignature.Location = new System.Drawing.Point(11, 297);
   this.btnSignature.Name = "btnSignature";
   this.btnSignature.Size = new System.Drawing.Size(77, 34);
   this.btnSignature.TabIndex = 9;
   this.btnSignature.Text = "RSA簽名";
   this.btnSignature.Click += new System.EventHandler(this.btnSignature_Click);
   // 
   // txtSignature
   // 
   this.txtSignature.Location = new System.Drawing.Point(137, 298);
   this.txtSignature.Multiline = true;
   this.txtSignature.Name = "txtSignature";
   this.txtSignature.Size = new System.Drawing.Size(602, 44);
   this.txtSignature.TabIndex = 11;
   this.txtSignature.Text = "";
   // 
   // btnGetHas 

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一区二区在线看| 老汉av免费一区二区三区| 日韩小视频在线观看专区| 丰满白嫩尤物一区二区| 亚洲aⅴ怡春院| 国产婷婷精品av在线| 4438成人网| 日本电影欧美片| 成人免费av资源| 国模大尺度一区二区三区| 亚洲午夜激情网站| 亚洲视频资源在线| 国产欧美日本一区视频| 精品国产乱码久久久久久免费| 欧美性生活一区| www.在线成人| 成人一区二区三区在线观看 | 亚洲欧美综合另类在线卡通| 日韩精品一区二区三区老鸭窝| 一本久道久久综合中文字幕| 成人在线视频一区| 国产成人综合网站| 国产精品一品二品| 国产最新精品免费| 黑人巨大精品欧美黑白配亚洲| 亚洲 欧美综合在线网络| 亚洲欧美一区二区三区久本道91| 国产精品剧情在线亚洲| 国产欧美一区二区精品忘忧草| 久久伊99综合婷婷久久伊| 欧美一区二区私人影院日本| 欧美日韩一级二级| 欧美体内she精高潮| 日本高清不卡在线观看| 91精彩视频在线观看| 91浏览器入口在线观看| 99久久免费精品| 91丨九色porny丨蝌蚪| 99re亚洲国产精品| 一本色道a无线码一区v| 91久久香蕉国产日韩欧美9色| 91蜜桃免费观看视频| 色婷婷综合久色| 欧美又粗又大又爽| 91精品国产综合久久久久久| 欧美人伦禁忌dvd放荡欲情| 欧美乱妇15p| 91精品国产高清一区二区三区蜜臀| 欧美乱熟臀69xxxxxx| 日韩午夜激情电影| 久久综合五月天婷婷伊人| 久久久久一区二区三区四区| 欧美极品少妇xxxxⅹ高跟鞋| 国产精品国产a| 一区二区在线观看av| 亚洲高清免费观看| 久久超级碰视频| 国产精品99久久久久| 99视频在线精品| 欧美日韩另类一区| 精品美女一区二区三区| 亚洲国产精品高清| 亚洲一区二区三区四区在线观看| 五月综合激情日本mⅴ| 黄一区二区三区| 成人精品免费视频| 欧美在线短视频| 精品国产露脸精彩对白| 中文字幕不卡的av| 午夜视黄欧洲亚洲| 国产精品一区二区91| 91蝌蚪porny| 欧美一区二区不卡视频| 国产欧美一区二区精品性色超碰| 亚洲九九爱视频| 老汉av免费一区二区三区 | 欧美精品视频www在线观看| 欧美一区二区三区视频在线| 久久久精品国产免大香伊| 亚洲日本丝袜连裤袜办公室| 亚洲成人先锋电影| 成人在线一区二区三区| 欧美精品tushy高清| 久久精品人人做人人综合| 艳妇臀荡乳欲伦亚洲一区| 久久精品国产99久久6| 一本色道亚洲精品aⅴ| 欧美岛国在线观看| 亚洲精品免费看| 国产在线国偷精品免费看| 色综合av在线| 久久综合久久综合久久| 亚洲永久免费视频| 国产999精品久久| 日韩一区和二区| 亚洲一区二区三区视频在线播放| 国产精品一二二区| 欧美一二三区在线| 亚洲激情图片一区| 高清不卡一区二区在线| 日韩一区二区在线观看视频播放| 日韩毛片一二三区| 福利一区二区在线| 精品福利二区三区| 亚洲国产美女搞黄色| jlzzjlzz欧美大全| 久久精品视频在线看| 日韩激情一二三区| 欧美午夜寂寞影院| 最新不卡av在线| 波波电影院一区二区三区| 久久亚洲私人国产精品va媚药| 日韩黄色免费网站| 欧美日韩国产影片| 亚洲男人天堂一区| 99久久精品国产麻豆演员表| 久久精品在这里| 国产乱码字幕精品高清av| 91精品国产丝袜白色高跟鞋| 亚洲一区在线免费观看| 成人av免费观看| 日本一区二区久久| 国产精品一区在线观看你懂的| 日韩欧美一级二级三级久久久| 污片在线观看一区二区 | 国产三级一区二区三区| 美国一区二区三区在线播放| 欧美高清视频一二三区 | 久久er精品视频| 欧美大片国产精品| 日韩国产欧美在线视频| 欧美精品在线一区二区| 五月婷婷久久综合| 7777女厕盗摄久久久| 爽好久久久欧美精品| 欧美丰满高潮xxxx喷水动漫| 午夜精品久久久久久久久| 欧美卡1卡2卡| 免费观看成人av| xfplay精品久久| 成人网在线免费视频| 中文字幕一区二区三| 色94色欧美sute亚洲线路一ni| 亚洲美女精品一区| 欧美日韩中文国产| 人人超碰91尤物精品国产| 欧美一区二区三区不卡| 国产一区二区三区免费在线观看| 精品成人免费观看| 国产91富婆露脸刺激对白 | 久久66热偷产精品| 久久久国产精品午夜一区ai换脸| 国产91精品一区二区麻豆亚洲| |精品福利一区二区三区| 一本色道久久综合亚洲精品按摩| 亚洲第一福利一区| 日韩一区二区三区免费观看| 国产在线播放一区三区四| 中文字幕免费观看一区| 色综合天天视频在线观看| 亚洲国产日韩综合久久精品| 日韩欧美在线观看一区二区三区| 国产精品亚洲综合一区在线观看| 国产精品久久久久久久久图文区 | 亚洲一线二线三线久久久| 欧美日韩精品欧美日韩精品一 | 欧美日韩一区在线观看| 日本不卡高清视频| 国产欧美日韩麻豆91| 在线这里只有精品| 久久99蜜桃精品| 亚洲欧美色图小说| 欧美一区二区三区视频免费| 成人影视亚洲图片在线| 亚洲va中文字幕| 久久久国产精华| 欧美日韩黄色影视| 国产精品一品二品| 亚洲电影在线免费观看| 久久日韩精品一区二区五区| 91色porny| 久久99精品久久只有精品| 自拍偷拍欧美激情| 日韩一区二区免费在线观看| 成人综合婷婷国产精品久久蜜臀 | 亚洲一区二区三区小说| 欧美精品一区二区三区在线播放| 99精品视频在线播放观看| 日本不卡不码高清免费观看| 17c精品麻豆一区二区免费| 91麻豆精品国产91久久久更新时间 | 欧美一区二区三区免费视频 | 豆国产96在线|亚洲| 一区二区在线观看视频在线观看| 久久久久国产精品人| 欧美蜜桃一区二区三区| 色综合一区二区三区| 国产一区二区免费在线| 视频一区欧美日韩| 亚洲免费在线播放|