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

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

?? encrypt.cs

?? This code is a cipher which takes in a plaintext or ciphertext string and encrypts / decrypts accord
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace Encrypt
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Button decryptbutton;
		private System.Windows.Forms.Button encryptbutton;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.RadioButton plainButton;
		private System.Windows.Forms.RadioButton cypherButton;
		private System.Windows.Forms.TextBox plaintext;
		private System.Windows.Forms.TextBox cyphertext;
		private System.Windows.Forms.Button Quit;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox IncValue;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form1()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		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.groupBox1 = new System.Windows.Forms.GroupBox();
			this.label1 = new System.Windows.Forms.Label();
			this.Quit = new System.Windows.Forms.Button();
			this.IncValue = new System.Windows.Forms.TextBox();
			this.cyphertext = new System.Windows.Forms.TextBox();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.plainButton = new System.Windows.Forms.RadioButton();
			this.cypherButton = new System.Windows.Forms.RadioButton();
			this.decryptbutton = new System.Windows.Forms.Button();
			this.encryptbutton = new System.Windows.Forms.Button();
			this.plaintext = new System.Windows.Forms.TextBox();
			this.groupBox1.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
																					this.label1,
																					this.Quit,
																					this.IncValue,
																					this.cyphertext,
																					this.groupBox2,
																					this.decryptbutton,
																					this.encryptbutton,
																					this.plaintext});
			this.groupBox1.Location = new System.Drawing.Point(8, 0);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(312, 120);
			this.groupBox1.TabIndex = 8;
			this.groupBox1.TabStop = false;
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(8, 80);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(176, 32);
			this.label1.TabIndex = 20;
			this.label1.Text = "Please Enter the Value by which you want to decrypt/encrypt by:";
			// 
			// Quit
			// 
			this.Quit.Location = new System.Drawing.Point(232, 80);
			this.Quit.Name = "Quit";
			this.Quit.Size = new System.Drawing.Size(72, 24);
			this.Quit.TabIndex = 19;
			this.Quit.Text = "&Quit";
			this.Quit.Click += new System.EventHandler(this.Quit_Click);
			// 
			// IncValue
			// 
			this.IncValue.Location = new System.Drawing.Point(192, 88);
			this.IncValue.Name = "IncValue";
			this.IncValue.Size = new System.Drawing.Size(24, 20);
			this.IncValue.TabIndex = 18;
			this.IncValue.Text = "";
			this.IncValue.TextChanged += new System.EventHandler(this.IncValue_TextChanged_1);
			// 
			// cyphertext
			// 
			this.cyphertext.Location = new System.Drawing.Point(120, 48);
			this.cyphertext.Name = "cyphertext";
			this.cyphertext.Size = new System.Drawing.Size(104, 20);
			this.cyphertext.TabIndex = 17;
			this.cyphertext.Text = "Decrypted Message";
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.AddRange(new System.Windows.Forms.Control[] {
																					this.plainButton,
																					this.cypherButton});
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(112, 80);
			this.groupBox2.TabIndex = 16;
			this.groupBox2.TabStop = false;
			
			// 
			// plainButton
			// 
			this.plainButton.Checked = true;
			this.plainButton.Location = new System.Drawing.Point(16, 16);
			this.plainButton.Name = "plainButton";
			this.plainButton.Size = new System.Drawing.Size(80, 24);
			this.plainButton.TabIndex = 2;
			this.plainButton.TabStop = true;
			this.plainButton.Text = "PlainText";
			this.plainButton.CheckedChanged += new System.EventHandler(this.plainButton_CheckedChanged);
			// 
			// cypherButton
			// 
			this.cypherButton.Location = new System.Drawing.Point(16, 48);
			this.cypherButton.Name = "cypherButton";
			this.cypherButton.Size = new System.Drawing.Size(88, 24);
			this.cypherButton.TabIndex = 3;
			this.cypherButton.Text = "CypherText";
			this.cypherButton.CheckedChanged += new System.EventHandler(this.cypherButton_CheckedChanged);
			// 
			// decryptbutton
			// 
			this.decryptbutton.Location = new System.Drawing.Point(232, 48);
			this.decryptbutton.Name = "decryptbutton";
			this.decryptbutton.TabIndex = 13;
			this.decryptbutton.Text = "&Decrypt";
			this.decryptbutton.Click += new System.EventHandler(this.decryptbutton_Click);
			// 
			// encryptbutton
			// 
			this.encryptbutton.Location = new System.Drawing.Point(232, 16);
			this.encryptbutton.Name = "encryptbutton";
			this.encryptbutton.TabIndex = 14;
			this.encryptbutton.Text = "&Encrypt";
			this.encryptbutton.Click += new System.EventHandler(this.encryptbutton_Click);
			// 
			// plaintext
			// 
			this.plaintext.Location = new System.Drawing.Point(120, 16);
			this.plaintext.Name = "plaintext";
			this.plaintext.Size = new System.Drawing.Size(104, 20);
			this.plaintext.TabIndex = 12;
			this.plaintext.Text = "";
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(320, 121);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.groupBox1});
			this.Location = new System.Drawing.Point(120, 48);
			this.Name = "Form1";
			this.Text = "Encrypt / Decrypt Program";
			this.Load += new System.EventHandler(this.Form1_Load);
			this.groupBox1.ResumeLayout(false);
			this.groupBox2.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}

		private void Form1_Load(object sender, System.EventArgs e)
		{
			this.plaintext.Enabled = true;
			this.cyphertext.Enabled = false;
			this.encryptbutton.Enabled = true;
			this.decryptbutton.Enabled = false;
		
		
		}


		private void plainButton_CheckedChanged(object sender, System.EventArgs e)
		{
			this.plaintext.Enabled = true;
			this.plaintext.Text = "";
			this.cyphertext.Enabled = false;
			this.encryptbutton.Enabled = true;
			this.decryptbutton.Enabled = false;
			this.cyphertext.Text = "Encrypted Message"; 
			this.plaintext.Focus();
			this.IncValue.Text = "";
			
			
		}

		private void cypherButton_CheckedChanged(object sender, System.EventArgs e)
		{	
			this.cyphertext.Text = "";
			this.plaintext.Enabled = false;
			this.cyphertext.Enabled = true;
			this.encryptbutton.Enabled = false;
			this.decryptbutton.Enabled = true;
			this.plaintext.Text = "Decrypted Message";
			this.cyphertext.Focus();
			this.IncValue.Text = "";
			
		}

		private void decryptbutton_Click(object sender, System.EventArgs e)
		{
			Decryption decrypt = new Decryption();
			string temp = "";
			if(this.cyphertext.Text == "")
			{
				MessageBox.Show("Cannot Decrypt - no cyphertext entered!");
				this.cyphertext.Focus();
				
			}	
			else 
				try
				{
					temp = decrypt.Decrypt(this.cyphertext.Text, this.IncValue.Text);
					this.plaintext.Text = temp;
					
				}
					
				catch(Exception excep)
				{
					string type = excep.GetType().ToString();

					if(type == "System.FormatException")
					{
						MessageBox.Show("Please Enter in a value by which to Decrypt by");
						this.IncValue.Focus();
						this.IncValue.Text = "";
						System.Console.WriteLine("The following is a detailed description of the error\n" + type);
					}
					else if(type == "System.OverflowException")
					{
						MessageBox.Show("Number to large to encrypt, please enter in another number");
						this.IncValue.Focus();
						this.IncValue.Text = "";
						System.Console.WriteLine("The following is a detailed description of the error\n" + type);
					}
					else
					{
						MessageBox.Show("Unexpected Exception");
						System.Console.WriteLine("The following is a detailed description of the error\n" + type);
					}
				}
		
		}

		private void encryptbutton_Click(object sender, System.EventArgs e)
		{	
			Encryption encrypt = new Encryption();
			string temp = "";
			if(this.plaintext.Text == "")
			{
				MessageBox.Show("Cannot Encrypt - No Plaintext entered");
				this.plaintext.Focus();
			}	
				else 
				try
				{
					temp = encrypt.Encrypt(this.plaintext.Text, this.IncValue.Text);
					cyphertext.Text = temp;
				}
			
				catch(FormatException fexcept)
				{
					MessageBox.Show("Please enter in a numeric value by which to Encrypt by");
					string tempex = fexcept.ToString();
					this.IncValue.Text = "";
					this.IncValue.Focus();
					System.Console.WriteLine("The following is a detailed description of the error\n" + tempex);
				}
		
				catch(OverflowException overex)
				{
					MessageBox.Show("Number to large to encrypt, please enter in another number");
					string tempex = overex.ToString();
					this.IncValue.Text = "";
					this.IncValue.Focus();
					System.Console.WriteLine("The following is a detailed description of the error\n" + tempex);
					
				}
			
		}
	

		private void Quit_Click(object sender, System.EventArgs e)
		{
			Application.Exit();
		}

		private void IncValue_TextChanged(object sender, System.EventArgs e)
		{
			if(this.IncValue.Text == "")
			{
				MessageBox.Show("Please Enter in a value by which to Encrypt/Decrypt by");
			}
		}

		private void IncValue_TextChanged_1(object sender, System.EventArgs e)
		{/*
			if(! this.IncValue.Text.StartsWith("1"))
			{
				MessageBox.Show("woops"); 
			 }*/
		}

		
		

		

	
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧洲av一区二区嗯嗯嗯啊| 欧美日韩国产大片| 精品国产一区二区三区不卡| 日韩高清中文字幕一区| 欧美日韩五月天| 免费不卡在线观看| 久久亚洲综合色一区二区三区| 精品中文字幕一区二区小辣椒| 2017欧美狠狠色| 成人av电影在线| 亚洲午夜久久久久久久久久久| 欧美日韩日本视频| 国产在线精品一区在线观看麻豆| 国产欧美综合色| 日本韩国欧美在线| 青青草国产精品97视觉盛宴 | 91亚洲永久精品| 一区二区三区自拍| 日韩欧美综合在线| 成熟亚洲日本毛茸茸凸凹| 一区二区日韩av| 欧美va亚洲va| 91福利国产成人精品照片| 日韩av网站在线观看| 欧美极品xxx| 欧美久久久久久久久久| 国产成人精品免费看| 夜夜揉揉日日人人青青一国产精品| 91麻豆精品国产自产在线观看一区| 国产精品系列在线播放| 亚洲成人三级小说| 中文字幕乱码日本亚洲一区二区| 欧美三级视频在线播放| 国产成人精品午夜视频免费| 亚洲一区二区三区在线看| 精品人伦一区二区色婷婷| 一本色道久久综合精品竹菊| 久久99这里只有精品| 一区二区三区在线视频免费观看| 精品久久久久一区| 欧美曰成人黄网| 成人丝袜18视频在线观看| 日韩国产精品久久久| 亚洲免费av高清| 国产亚洲欧美色| 91精品国产日韩91久久久久久| av在线综合网| 国产激情91久久精品导航| 视频精品一区二区| 亚洲毛片av在线| 国产精品私房写真福利视频| 欧美成人猛片aaaaaaa| 欧美三级日韩在线| 色婷婷精品久久二区二区蜜臂av| 国产成人精品亚洲777人妖| 免费不卡在线观看| 日韩在线一区二区三区| 一区二区三区不卡在线观看| 国产欧美日韩在线观看| 久久综合久久综合久久| 欧美一级精品大片| 在线观看91av| 欧美男男青年gay1069videost| 91亚洲精品一区二区乱码| 丁香激情综合国产| 国产成人无遮挡在线视频| 狠狠色狠狠色合久久伊人| 另类小说色综合网站| 偷拍日韩校园综合在线| 亚洲电影在线播放| 亚洲美腿欧美偷拍| 亚洲精品视频在线| 一区二区三区中文免费| 亚洲精品视频在线看| 亚洲天堂中文字幕| 亚洲三级在线免费| 国产精品国产三级国产普通话99| 久久精品亚洲一区二区三区浴池 | 久久日韩粉嫩一区二区三区| 2020国产精品自拍| 国产视频一区二区在线观看| 久久亚区不卡日本| 欧美国产综合色视频| 国产精品青草久久| 亚洲色图.com| 亚洲福利电影网| 青青草国产精品97视觉盛宴 | 国产精品自拍av| 丰满亚洲少妇av| 91在线国内视频| 欧美主播一区二区三区美女| 欧美剧情片在线观看| 日韩三级电影网址| 国产网站一区二区三区| 日韩码欧中文字| 亚洲18女电影在线观看| 日韩va欧美va亚洲va久久| 久久99精品国产.久久久久久| 国产资源在线一区| 白白色 亚洲乱淫| 欧美日韩综合色| 欧美大白屁股肥臀xxxxxx| 亚洲国产精品传媒在线观看| 亚洲摸摸操操av| 蓝色福利精品导航| 成人国产电影网| 538在线一区二区精品国产| 精品99999| 伊人婷婷欧美激情| 久久精品国产网站| 91丝袜国产在线播放| 91精品国产综合久久精品app | 欧美色区777第一页| 日韩精品一区在线观看| 国产精品久久久久久久久免费桃花| 亚洲影院久久精品| 国产一区免费电影| 在线观看国产一区二区| 26uuu国产一区二区三区 | 亚洲品质自拍视频网站| 日av在线不卡| 99久久久精品| 91精品福利在线一区二区三区 | 日韩免费性生活视频播放| 日本一二三四高清不卡| 三级久久三级久久| 99久久免费精品高清特色大片| 91精品欧美福利在线观看| 国产精品女上位| 久久国产精品一区二区| 色婷婷国产精品| 国产欧美一区二区精品婷婷 | 捆绑调教一区二区三区| 91福利精品视频| 国产精品久久久久四虎| 看电视剧不卡顿的网站| 欧美曰成人黄网| 成人免费小视频| 国产福利一区二区| 欧美一区二区三区视频| 一级做a爱片久久| 成人激情开心网| 久久精品人人做人人爽97| 人人精品人人爱| 欧美日高清视频| 亚洲精品福利视频网站| 成人福利在线看| 国产日韩在线不卡| 国产尤物一区二区| 日韩精品一区二区三区四区| 亚洲高清视频在线| 91福利在线看| 亚洲精品国产成人久久av盗摄| 丁香激情综合国产| 日本一区二区三区dvd视频在线| 久久se精品一区精品二区| 欧美一区二区视频网站| 丝袜脚交一区二区| 欧美高清性hdvideosex| 亚洲v日本v欧美v久久精品| 欧洲亚洲精品在线| 夜夜嗨av一区二区三区| 91啪在线观看| 亚洲欧美日韩国产中文在线| 成人一区二区三区视频在线观看| 亚洲精品在线免费观看视频| 久久综合综合久久综合| 日韩精品一区二区三区四区视频| 丝袜脚交一区二区| 日韩欧美国产综合| 精品综合免费视频观看| 久久无码av三级| 国产福利不卡视频| 国产精品无人区| 一本高清dvd不卡在线观看| 亚洲欧美另类综合偷拍| 欧美怡红院视频| 天堂久久一区二区三区| 欧美一级午夜免费电影| 狠狠色丁香久久婷婷综合_中| 欧美成人一区二区| 国产成人精品一区二区三区四区 | 亚洲人成人一区二区在线观看| 99r国产精品| 亚洲午夜国产一区99re久久| 69堂成人精品免费视频| 麻豆精品久久久| 久久久久久久久99精品| 成人深夜视频在线观看| 亚洲精品一卡二卡| 91精品国产高清一区二区三区| 精品一区二区综合| 国产精品丝袜久久久久久app| 色综合 综合色| 日韩精品一二三| 国产欧美日韩另类一区| 一本色道久久综合精品竹菊| 日韩福利电影在线观看| 国产欧美日韩亚州综合| 欧美三级电影在线看|