コード例 #1
0
ファイル: file_de.cs プロジェクト: adnandothussain/Minerva
 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();
        }