예제 #1
0
 private void vigenerebtn_Click(object sender, EventArgs e)
 {
     using (var form = new vigkeydialog())
     {
         var result = form.ShowDialog();
         if (result == DialogResult.OK)
         {
             vigkey = form.ReturnValue2;
             vigDecode decode = new vigDecode(ciphertext, vigkey);
             outputtext.Text = decode.get_Plaintext();
             File.WriteAllText(filepath, outputtext.text);
         }
     }
 }
예제 #2
0
        private void vigenerebtn_Click(object sender, EventArgs e)
        {
            ciphertext = inputtext.Text;
            using (var form1 = new vigkeydialog())
            {
                var result = form1.ShowDialog();
                if (result == DialogResult.OK)
                {
                    vigkey = form1.ReturnValue2;
                }
            }
            vigDecode decode = new vigDecode(ciphertext, vigkey);

            outputtext.Text = decode.get_Plaintext();
        }