예제 #1
0
 private void frmCryptographer_Load(object sender, EventArgs e)
 {
     ceasarCipher   = new frmCaesar();
     vigenereCipher = new frmVigenere();
     playfairCipher = new frmPlayfair();
     DESCipher      = new frmDES();
     AESCipher      = new frmAES();
     RSACipher      = new frmRSA();
     RSASigature    = new frmRSASignature();
     diffieHellman  = new frmDiffieHellman();
 }
예제 #2
0
 private void btnDES_Click(object sender, EventArgs e)
 {
     if (!DESCipher.Visible)
     {
         DESCipher = new frmDES();
         DESCipher.Show();
     }
     else
     {
         DESCipher.BringToFront();
     }
 }
예제 #3
0
 private void btnDES_Click(object sender, EventArgs e)
 {
     if (!DES.Visible)
     {
         DES = new frmDES();
         DES.Show();
         if (txtMessage.Text != "" && txtKey.Text != "")
         {
             DES.setMessageAndKey(txtMessage.Text, txtKey.Text, txtIV.Text);
         }
         this.Close();
     }
 }
예제 #4
0
 private void frmDESInfo_Load(object sender, EventArgs e)
 {
     rdoBtnEncrypt.Checked = true;
     DES = new frmDES();
 }
예제 #5
0
        private void frmDES_FormClosing(object sender, FormClosingEventArgs e)
        {
            frmDES DESCipher = new frmDES();

            DESCipher.Close();
        }