Esempio n. 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();
 }
Esempio n. 2
0
 private void btnDES_Click(object sender, EventArgs e)
 {
     if (!DESCipher.Visible)
     {
         DESCipher = new frmDES();
         DESCipher.Show();
     }
     else
     {
         DESCipher.BringToFront();
     }
 }
Esempio n. 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();
     }
 }
Esempio n. 4
0
 private void frmDESInfo_Load(object sender, EventArgs e)
 {
     rdoBtnEncrypt.Checked = true;
     DES = new frmDES();
 }
Esempio n. 5
0
        private void frmDES_FormClosing(object sender, FormClosingEventArgs e)
        {
            frmDES DESCipher = new frmDES();

            DESCipher.Close();
        }