private void VigenereEncodeButton_Click(object sender, EventArgs e) { OutputClass.WriteToFile(VigenereInputBox.Text, inputPath); VigenereEncodeBox.Text = vigereMethod.Encode(VigenereInputBox.Text, VigenereKeyBox.Text, out log); OutputClass.WriteToFile(VigenereEncodeBox.Text, encodePath); LogForm form = new LogForm(log); form.Show(); }
private void GammaEncodeButton_Click(object sender, EventArgs e) { OutputClass.WriteToFile(GammaInputBox.Text, inputPath); GammaEncodeBox.Text = gammaMethod.Encode(GammaInputBox.Text, GammaKeyBox.Text, out log); OutputClass.WriteToFile(GammaEncodeBox.Text, encodePath); LogForm form = new LogForm(log); form.Show(); }
private void EncodeButton_Click(object sender, EventArgs e) { OutputClass.WriteToFile(TranspositionInputBox.Text, inputPath); TranspositionEncodeBox.Text = transpositionMetod.Encode(TranspositionInputBox.Text, TranspositionKeyBox.Text, out log); OutputClass.WriteToFile(TranspositionEncodeBox.Text, encodePath); LogForm form = new LogForm(log); form.Show(); }
private void RSADecodeButton_Click(object sender, EventArgs e) { int TotalSum; RSADecodeBox.Text = rsaMethod.Decode(RSAEncodeBox.Text, KeyBox1.Text, KeyBox2.Text, out log, out TotalSum); OutputClass.WriteToFile(RSADecodeBox.Text, decodePath); LogForm form = new LogForm(log); form.Show(); }
private void DecodeSpy_Click(object sender, EventArgs e) { string log; int TotalSum; ChangeBox.Text = rsaMethod.Decode(ChangeBox.Text, KeyBox1.Text, KeyBox2.Text, out log, out TotalSum); TSBox2.Text = TotalSum.ToString(); LogForm form = new LogForm(log); form.Show(); }
private void RSAEncodeButton_Click(object sender, EventArgs e) { OutputClass.WriteToFile(RSAInputBox.Text, inputPath); string key1, key2; int TotalSum; RSAEncodeBox.Text = rsaMethod.Encode(RSAInputBox.Text, out key1, out key2, out log, out TotalSum); KeyBox1.Text = key1; KeyBox2.Text = key2; OutputClass.WriteToFile(RSAEncodeBox.Text, encodePath); LogForm form = new LogForm(log); form.Show(); }
private void button1_Click(object sender, EventArgs e) { string key1, key2, log; int TotalSum; ChangeBox.Text = rsaMethod.Encode(InputBox.Text, out key1, out key2, out log, out TotalSum); KeyBox1.Text = key1; KeyBox2.Text = key2; TSBox1.Text = TotalSum.ToString(); LogForm form = new LogForm(log); form.Show(); }
private void CheckButton_Click(object sender, EventArgs e) { string log; int TotalSum; OutputBox.Text = rsaMethod.Decode(OutputBox.Text, KeyBox1.Text, KeyBox2.Text, out log, out TotalSum); TSBox2.Text = TotalSum.ToString(); LogForm form = new LogForm(log); form.Show(); if (TSBox1.Text == TSBox2.Text) { MessageBox.Show("Сообщение не изменилось"); } else { MessageBox.Show("Сообщение изменилось"); } }