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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? form1.cs

?? 用CSHARP實現(xiàn)的AES算法源代碼
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

using AesLib;
using System.Text;

namespace AesDemoWinApp
{
	public class Form1 : System.Windows.Forms.Form
	{
    private System.Windows.Forms.TextBox textBox1;
    private System.Windows.Forms.TextBox textBox2;
    private System.Windows.Forms.TextBox textBox3;
    private System.Windows.Forms.GroupBox groupBox1;
    private System.Windows.Forms.RadioButton radioButton1;
    private System.Windows.Forms.RadioButton radioButton2;
    private System.Windows.Forms.RadioButton radioButton3;
    private System.Windows.Forms.Button button1;
    private System.Windows.Forms.Button button2;
    private System.Windows.Forms.Label label1;
    private System.Windows.Forms.Label label2;
    private System.Windows.Forms.Label label3;
		
		private System.ComponentModel.Container components = null;

    private Aes.KeySize keysize;

		public Form1()
		{
			InitializeComponent();
		}

		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
      this.textBox1 = new System.Windows.Forms.TextBox();
      this.textBox2 = new System.Windows.Forms.TextBox();
      this.textBox3 = new System.Windows.Forms.TextBox();
      this.groupBox1 = new System.Windows.Forms.GroupBox();
      this.radioButton3 = new System.Windows.Forms.RadioButton();
      this.radioButton2 = new System.Windows.Forms.RadioButton();
      this.radioButton1 = new System.Windows.Forms.RadioButton();
      this.button1 = new System.Windows.Forms.Button();
      this.button2 = new System.Windows.Forms.Button();
      this.label1 = new System.Windows.Forms.Label();
      this.label2 = new System.Windows.Forms.Label();
      this.label3 = new System.Windows.Forms.Label();
      this.groupBox1.SuspendLayout();
      this.SuspendLayout();
      // 
      // textBox1
      // 
      this.textBox1.Location = new System.Drawing.Point(8, 104);
      this.textBox1.MaxLength = 8;
      this.textBox1.Name = "textBox1";
      this.textBox1.Size = new System.Drawing.Size(65, 20);
      this.textBox1.TabIndex = 0;
      this.textBox1.Text = "";
      // 
      // textBox2
      // 
      this.textBox2.Location = new System.Drawing.Point(160, 104);
      this.textBox2.MaxLength = 8;
      this.textBox2.Name = "textBox2";
      this.textBox2.Size = new System.Drawing.Size(65, 20);
      this.textBox2.TabIndex = 1;
      this.textBox2.Text = "";
      // 
      // textBox3
      // 
      this.textBox3.Location = new System.Drawing.Point(312, 104);
      this.textBox3.MaxLength = 8;
      this.textBox3.Name = "textBox3";
      this.textBox3.Size = new System.Drawing.Size(65, 20);
      this.textBox3.TabIndex = 2;
      this.textBox3.Text = "";
      // 
      // groupBox1
      // 
      this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                            this.radioButton3,
                                                                            this.radioButton2,
                                                                            this.radioButton1});
      this.groupBox1.Location = new System.Drawing.Point(8, 8);
      this.groupBox1.Name = "groupBox1";
      this.groupBox1.Size = new System.Drawing.Size(104, 72);
      this.groupBox1.TabIndex = 3;
      this.groupBox1.TabStop = false;
      this.groupBox1.Text = "Key Size";
      // 
      // radioButton3
      // 
      this.radioButton3.Location = new System.Drawing.Point(12, 48);
      this.radioButton3.Name = "radioButton3";
      this.radioButton3.Size = new System.Drawing.Size(64, 16);
      this.radioButton3.TabIndex = 2;
      this.radioButton3.Text = "256 bits";
      // 
      // radioButton2
      // 
      this.radioButton2.Location = new System.Drawing.Point(12, 32);
      this.radioButton2.Name = "radioButton2";
      this.radioButton2.Size = new System.Drawing.Size(64, 16);
      this.radioButton2.TabIndex = 1;
      this.radioButton2.Text = "192 bits";
      // 
      // radioButton1
      // 
      this.radioButton1.Checked = true;
      this.radioButton1.Location = new System.Drawing.Point(12, 16);
      this.radioButton1.Name = "radioButton1";
      this.radioButton1.Size = new System.Drawing.Size(64, 16);
      this.radioButton1.TabIndex = 0;
      this.radioButton1.TabStop = true;
      this.radioButton1.Text = "128 bits";
      // 
      // button1
      // 
      this.button1.Location = new System.Drawing.Point(80, 104);
      this.button1.Name = "button1";
      this.button1.TabIndex = 4;
      this.button1.Text = "encipher ->";
      this.button1.Click += new System.EventHandler(this.button1_Click);
      // 
      // button2
      // 
      this.button2.Location = new System.Drawing.Point(232, 104);
      this.button2.Name = "button2";
      this.button2.TabIndex = 5;
      this.button2.Text = "decipher ->";
      this.button2.Click += new System.EventHandler(this.button2_Click);
      // 
      // label1
      // 
      this.label1.Location = new System.Drawing.Point(8, 88);
      this.label1.Name = "label1";
      this.label1.Size = new System.Drawing.Size(100, 16);
      this.label1.TabIndex = 6;
      this.label1.Text = "plaintext";
      // 
      // label2
      // 
      this.label2.Location = new System.Drawing.Point(160, 88);
      this.label2.Name = "label2";
      this.label2.Size = new System.Drawing.Size(100, 16);
      this.label2.TabIndex = 7;
      this.label2.Text = "ciphertext";
      // 
      // label3
      // 
      this.label3.Location = new System.Drawing.Point(312, 88);
      this.label3.Name = "label3";
      this.label3.Size = new System.Drawing.Size(88, 16);
      this.label3.TabIndex = 8;
      this.label3.Text = "deciphered text";
      // 
      // Form1
      // 
      this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
      this.ClientSize = new System.Drawing.Size(400, 149);
      this.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                  this.label3,
                                                                  this.label2,
                                                                  this.label1,
                                                                  this.button2,
                                                                  this.button1,
                                                                  this.groupBox1,
                                                                  this.textBox3,
                                                                  this.textBox2,
                                                                  this.textBox1});
      this.Name = "Form1";
      this.Text = "Advanced Encryption Standard Demo in .NET";
      this.groupBox1.ResumeLayout(false);
      this.ResumeLayout(false);

    }
		#endregion

		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}

    private void button1_Click(object sender, System.EventArgs e)
    {
      if (radioButton1.Checked)
        keysize = Aes.KeySize.Bits128;
      else if (radioButton2.Checked)
        keysize = Aes.KeySize.Bits192;
      else
        keysize = Aes.KeySize.Bits256;

      byte[] plainText = new byte[16];
      byte[] cipherText = new byte[16];  
      
      plainText = Encoding.Unicode.GetBytes(textBox1.Text.PadRight(8,' '));
      AesLib.Aes a = new Aes(keysize, new byte[16]);
      a.Cipher(plainText, cipherText);
      textBox2.Text = Encoding.Unicode.GetString(cipherText);
    }  // button1_Click()

    private void button2_Click(object sender, System.EventArgs e)
    {
      if (radioButton1.Checked)
        keysize = Aes.KeySize.Bits128;
      else if (radioButton2.Checked)
        keysize = Aes.KeySize.Bits192;
      else
        keysize = Aes.KeySize.Bits256;

      byte[] cipherText = new byte[16];
      byte[] decipheredText = new byte[16];

      cipherText = Encoding.Unicode.GetBytes(textBox2.Text);
      AesLib.Aes a = new Aes(keysize, new byte[16]);
      a.InvCipher(cipherText, decipheredText);
      textBox3.Text = Encoding.Unicode.GetString(decipheredText);;
    }  // button2_Click()

	}  // class Form1
}  // ns AesDemoWinApp

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美精品一区二区色综合朱莉| 夜夜揉揉日日人人青青一国产精品 | 丝袜美腿一区二区三区| 日产国产欧美视频一区精品| 色婷婷亚洲一区二区三区| 欧美亚洲国产一区在线观看网站| 国内精品国产三级国产a久久| 91福利视频在线| 国产片一区二区| 久久66热re国产| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 亚洲成人久久影院| 成人午夜电影网站| 久久综合久久鬼色| 免费观看日韩av| 欧美日韩夫妻久久| 亚洲一区二区三区四区中文字幕| 波多野结衣在线一区| 精品国产凹凸成av人导航| 午夜a成v人精品| 欧美性大战久久| 一区二区三区波多野结衣在线观看 | 99re8在线精品视频免费播放| 久久久国产午夜精品| 精品亚洲国产成人av制服丝袜| 91.麻豆视频| 性久久久久久久久久久久| 91视视频在线直接观看在线看网页在线看 | 免费在线观看成人| 欧美日韩在线播放三区四区| 亚洲视频免费看| 色综合天天狠狠| 亚洲精品视频在线观看免费| 99国内精品久久| 中文字幕精品在线不卡| 波波电影院一区二区三区| 中文字幕在线一区二区三区| kk眼镜猥琐国模调教系列一区二区| 国产三级一区二区| 粗大黑人巨茎大战欧美成人| 国产日本一区二区| 99久久久久久99| 亚洲精品v日韩精品| 欧美在线999| 视频一区二区三区在线| 日韩精品自拍偷拍| 国产成人aaa| 中文字幕欧美国产| 亚洲人成伊人成综合网小说| 日韩欧美的一区| 经典一区二区三区| 久久久久97国产精华液好用吗 | 亚洲视频一区在线观看| 99re热视频这里只精品| 亚洲一区二区三区中文字幕 | 91成人免费在线视频| 性欧美大战久久久久久久久| 欧美xfplay| av一区二区三区黑人| 中文字幕视频一区| 欧美日韩国产高清一区二区三区| 麻豆91在线看| 国产精品乱码一区二三区小蝌蚪| 日本乱码高清不卡字幕| 免费观看日韩av| 国产精品久久久久久户外露出| 色欧美日韩亚洲| 国产在线精品一区二区三区不卡 | 欧美一区二区美女| 国产成人精品www牛牛影视| 亚洲精品久久嫩草网站秘色| 欧美疯狂性受xxxxx喷水图片| 精品一区二区免费在线观看| 国产精品成人一区二区艾草| 欧美一区二区三区在| 成人免费毛片高清视频| 亚洲成人777| 欧美国产精品一区二区三区| 欧美日韩国产免费一区二区| 国产aⅴ综合色| 五月婷婷欧美视频| 国产精品视频你懂的| 7777精品伊人久久久大香线蕉经典版下载 | aaa亚洲精品一二三区| 日韩电影一区二区三区四区| 国产精品嫩草99a| 日韩精品最新网址| 欧美日韩一区成人| 9i在线看片成人免费| 欧美aa在线视频| 亚洲一区免费观看| 国产精品夫妻自拍| 久久精品水蜜桃av综合天堂| 91精品国产品国语在线不卡| 在线影视一区二区三区| 高清av一区二区| 国产在线精品免费| 麻豆久久久久久久| 日本成人超碰在线观看| 亚洲精品久久久久久国产精华液| 日本一区二区不卡视频| 欧美成人乱码一区二区三区| 欧美精品自拍偷拍动漫精品| 91国在线观看| 色综合久久99| 99视频精品免费视频| 成人免费av资源| 国产美女精品一区二区三区| 久久国产精品无码网站| 日本一不卡视频| 日韩黄色免费电影| 亚洲第一搞黄网站| 婷婷丁香久久五月婷婷| 亚洲国产cao| 亚洲一区在线免费观看| 亚洲综合一区二区三区| 亚洲乱码日产精品bd| 亚洲精品国产成人久久av盗摄 | 国产网站一区二区| 2021久久国产精品不只是精品| 日韩精品一区二区三区蜜臀| 欧美一级在线免费| 精品国产污网站| 久久免费美女视频| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 日韩欧美一卡二卡| 欧美一级搡bbbb搡bbbb| 日韩一区二区在线看片| 精品国产一区久久| 国产视频一区在线播放| 国产精品欧美一级免费| 亚洲黄色片在线观看| 亚洲成av人片在线观看无码| 免费看黄色91| 国产乱码精品一区二区三区忘忧草| 国产精品一二三四区| 99re视频这里只有精品| 欧美日韩精品欧美日韩精品一 | 欧美欧美午夜aⅴ在线观看| 制服丝袜av成人在线看| 日韩一区二区三区电影在线观看| 精品嫩草影院久久| 亚洲欧洲日韩在线| 亚洲bt欧美bt精品| 狠狠色丁香久久婷婷综合_中| 国产99一区视频免费| 在线视频中文字幕一区二区| 日韩欧美黄色影院| 中文字幕永久在线不卡| 性做久久久久久免费观看 | 国产欧美日韩在线视频| 亚洲情趣在线观看| 免费成人性网站| 不卡的av中国片| 日韩欧美中文字幕精品| 欧美国产综合色视频| 亚洲第一在线综合网站| 国产99久久久久| 91精品国产综合久久精品图片| 国产亚洲一区二区在线观看| 一区二区三区.www| 国产精品一区二区你懂的| 91麻豆123| 久久免费偷拍视频| 日欧美一区二区| 91视频免费播放| 精品噜噜噜噜久久久久久久久试看 | 成人午夜碰碰视频| 欧美一区二区日韩| 亚洲一区二三区| 成人黄色小视频在线观看| 91精品啪在线观看国产60岁| 国产精品久久久久久久久免费樱桃 | 亚洲国产欧美在线| 国产精品一区二区免费不卡| 欧美一区二区在线播放| 亚洲美女视频一区| 成人精品高清在线| 久久婷婷久久一区二区三区| 亚洲永久精品国产| 色欧美乱欧美15图片| 欧美激情一区二区三区| 国产最新精品免费| 欧美一区二区三区成人| 亚洲丰满少妇videoshd| 95精品视频在线| 国产精品嫩草久久久久| 狠狠久久亚洲欧美| 精品国产乱码久久久久久闺蜜| 亚洲高清不卡在线| 欧美中文字幕一区二区三区| 亚洲情趣在线观看| 97se亚洲国产综合自在线 | 日韩精品一级中文字幕精品视频免费观看| 成人精品国产一区二区4080| 国产农村妇女精品| 国产成人日日夜夜| 中文av字幕一区| 国产揄拍国内精品对白| 久久久久国产精品免费免费搜索|