From 6ce0159c9b75956cdcd1e345d74860f08f2a070c Mon Sep 17 00:00:00 2001 From: citizen-VM Date: Mon, 24 Aug 2020 05:10:14 +0200 Subject: [PATCH] chore: adding decryption functionality [wip] --- main_form.Designer.cs | 178 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 169 insertions(+), 9 deletions(-) diff --git a/main_form.Designer.cs b/main_form.Designer.cs index 1b8d3a1..4ccf18e 100644 --- a/main_form.Designer.cs +++ b/main_form.Designer.cs @@ -28,7 +28,7 @@ /// private void InitializeComponent() { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); @@ -48,6 +48,20 @@ this.button2 = new System.Windows.Forms.Button(); this.dataGridView1 = new System.Windows.Forms.DataGridView(); this.label8 = new System.Windows.Forms.Label(); + this.textBox8 = new System.Windows.Forms.TextBox(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.textBox9 = new System.Windows.Forms.TextBox(); + this.button3 = new System.Windows.Forms.Button(); + this.label11 = new System.Windows.Forms.Label(); + this.textBox10 = new System.Windows.Forms.TextBox(); + this.label12 = new System.Windows.Forms.Label(); + this.textBox11 = new System.Windows.Forms.TextBox(); + this.button4 = new System.Windows.Forms.Button(); + this.label13 = new System.Windows.Forms.Label(); + this.textBox12 = new System.Windows.Forms.TextBox(); + this.label14 = new System.Windows.Forms.Label(); + this.textBox13 = new System.Windows.Forms.TextBox(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); this.SuspendLayout(); // @@ -209,14 +223,14 @@ this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None; this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.ColumnHeadersVisible = false; - dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle6.Font = new System.Drawing.Font("Verdana", 30F); - dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle6; + dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle7.Font = new System.Drawing.Font("Verdana", 30F); + dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle7; this.dataGridView1.Location = new System.Drawing.Point(401, 88); this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.ReadOnly = true; @@ -236,12 +250,144 @@ this.label8.Text = "encryption alphabet"; this.label8.Visible = false; // + // textBox8 + // + this.textBox8.Location = new System.Drawing.Point(759, 104); + this.textBox8.Name = "textBox8"; + this.textBox8.Size = new System.Drawing.Size(313, 20); + this.textBox8.TabIndex = 503; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(756, 88); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(24, 13); + this.label9.TabIndex = 504; + this.label9.Text = "key"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(759, 265); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(72, 13); + this.label10.TabIndex = 506; + this.label10.Text = "cryptmessage"; + // + // textBox9 + // + this.textBox9.Location = new System.Drawing.Point(759, 281); + this.textBox9.Name = "textBox9"; + this.textBox9.Size = new System.Drawing.Size(313, 20); + this.textBox9.TabIndex = 505; + // + // button3 + // + this.button3.Location = new System.Drawing.Point(759, 210); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(75, 23); + this.button3.TabIndex = 507; + this.button3.Text = "check key"; + this.button3.UseVisualStyleBackColor = true; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(759, 168); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(39, 13); + this.label11.TabIndex = 509; + this.label11.Text = "nualph"; + // + // textBox10 + // + this.textBox10.Location = new System.Drawing.Point(759, 184); + this.textBox10.Name = "textBox10"; + this.textBox10.ReadOnly = true; + this.textBox10.Size = new System.Drawing.Size(313, 20); + this.textBox10.TabIndex = 511; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(759, 127); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(60, 13); + this.label12.TabIndex = 508; + this.label12.Text = "pruned key"; + // + // textBox11 + // + this.textBox11.Location = new System.Drawing.Point(759, 143); + this.textBox11.Name = "textBox11"; + this.textBox11.ReadOnly = true; + this.textBox11.Size = new System.Drawing.Size(313, 20); + this.textBox11.TabIndex = 510; + // + // button4 + // + this.button4.Location = new System.Drawing.Point(759, 307); + this.button4.Name = "button4"; + this.button4.Size = new System.Drawing.Size(75, 23); + this.button4.TabIndex = 512; + this.button4.Text = "decrypt"; + this.button4.UseVisualStyleBackColor = true; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(759, 419); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(49, 13); + this.label13.TabIndex = 516; + this.label13.Text = "message"; + // + // textBox12 + // + this.textBox12.Location = new System.Drawing.Point(759, 435); + this.textBox12.Name = "textBox12"; + this.textBox12.ReadOnly = true; + this.textBox12.Size = new System.Drawing.Size(313, 20); + this.textBox12.TabIndex = 515; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(759, 380); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(84, 13); + this.label14.TabIndex = 514; + this.label14.Text = "nucryptmessage"; + // + // textBox13 + // + this.textBox13.Location = new System.Drawing.Point(759, 396); + this.textBox13.Name = "textBox13"; + this.textBox13.ReadOnly = true; + this.textBox13.Size = new System.Drawing.Size(313, 20); + this.textBox13.TabIndex = 513; + // // 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.label13); + this.Controls.Add(this.textBox12); + this.Controls.Add(this.label14); + this.Controls.Add(this.textBox13); + this.Controls.Add(this.button4); + this.Controls.Add(this.button3); + this.Controls.Add(this.label11); + this.Controls.Add(this.textBox10); + this.Controls.Add(this.label12); + this.Controls.Add(this.textBox11); + this.Controls.Add(this.label10); + this.Controls.Add(this.textBox9); + this.Controls.Add(this.label9); + this.Controls.Add(this.textBox8); this.Controls.Add(this.label8); this.Controls.Add(this.button2); this.Controls.Add(this.button1); @@ -295,6 +441,20 @@ private System.Windows.Forms.Button button2; private System.Windows.Forms.DataGridView dataGridView1; private System.Windows.Forms.Label label8; + private System.Windows.Forms.TextBox textBox8; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.TextBox textBox9; + private System.Windows.Forms.Button button3; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.TextBox textBox10; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.TextBox textBox11; + private System.Windows.Forms.Button button4; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.TextBox textBox12; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.TextBox textBox13; } }