diff --git a/main_form.Designer.cs b/main_form.Designer.cs index 4ec9454..9c678e1 100644 --- a/main_form.Designer.cs +++ b/main_form.Designer.cs @@ -62,6 +62,7 @@ this.textBox12 = new System.Windows.Forms.TextBox(); this.label14 = new System.Windows.Forms.Label(); this.textBox13 = new System.Windows.Forms.TextBox(); + this.button5 = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); this.SuspendLayout(); // @@ -370,12 +371,23 @@ this.textBox13.Size = new System.Drawing.Size(313, 20); this.textBox13.TabIndex = 513; // + // button5 + // + this.button5.Location = new System.Drawing.Point(230, 461); + this.button5.Name = "button5"; + this.button5.Size = new System.Drawing.Size(95, 23); + this.button5.TabIndex = 517; + this.button5.Text = "cp for decryption"; + this.button5.UseVisualStyleBackColor = true; + this.button5.Click += new System.EventHandler(this.button5_Click); + // // main_form // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoSize = true; this.ClientSize = new System.Drawing.Size(1140, 491); + this.Controls.Add(this.button5); this.Controls.Add(this.label13); this.Controls.Add(this.textBox12); this.Controls.Add(this.label14); @@ -457,6 +469,7 @@ private System.Windows.Forms.TextBox textBox12; private System.Windows.Forms.Label label14; private System.Windows.Forms.TextBox textBox13; + private System.Windows.Forms.Button button5; } } diff --git a/main_form.cs b/main_form.cs index 5f712eb..0990bbc 100644 --- a/main_form.cs +++ b/main_form.cs @@ -385,5 +385,15 @@ namespace KRY_0x01_ng /* decrypt */ decrypt(); } + + private void button5_Click(object sender, EventArgs e) + { + /* copy for decryption (tb7 --> tb9) */ + string cryptmsg = textBox7.Text.Trim(); + cryptmsg = String.Join("", cryptmsg); + cryptmsg = Regex.Replace(cryptmsg, @"\s+|", ""); + textBox9.Text = cryptmsg; + MessageBox.Show("great success","cryptmsg has been copied"); + } } }