示例#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 btnRSA_Click(object sender, EventArgs e)
 {
     if (!RSACipher.Visible)
     {
         RSACipher = new frmRSA();
         RSACipher.Show();
     }
     else
     {
         RSACipher.BringToFront();
     }
 }
示例#3
0
 private void btnRSA_Click(object sender, EventArgs e)
 {
     if (!RSA.Visible)
     {
         RSA = new frmRSA();
         RSA.Show();
         if (txtMessage.Text != "" && txtKey.Text != "")
         {
             RSA.setMessageAndKey(txtMessage.Text, txtKey.Text);
         }
         this.Close();
     }
 }
示例#4
0
        private void frmRSA_FormClosing(object sender, FormClosingEventArgs e)
        {
            frmRSA RSACipher = new frmRSA();

            RSACipher.Close();
        }
示例#5
0
 private void frmRSAInfo_Load(object sender, EventArgs e)
 {
     RSA = new frmRSA();
     rdoBtnEncrypt.Checked = true;
 }