示例#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 btnRSASignature_Click(object sender, EventArgs e)
 {
     if (!RSASigature.Visible)
     {
         RSASigature = new frmRSASignature();
         RSASigature.Show();
     }
     else
     {
         RSASigature.BringToFront();
     }
 }
 private void btnRSASignature_Click(object sender, EventArgs e)
 {
     if (!RSASignature.Visible)
     {
         RSASignature = new frmRSASignature();
         RSASignature.Show();
         if (txtSignedData.Text != "" && txtKey.Text != "")
         {
             RSASignature.setMessageAndKey(txtSignedData.Text, txtKey.Text, txtSignature.Text);
         }
         this.Close();
     }
 }
 private void frmRSASignatureInfo_Load(object sender, EventArgs e)
 {
     RSASignature       = new frmRSASignature();
     rdoBtnSign.Checked = true;
 }
示例#5
0
        private void frmRSASignature_FormClosing(object sender, FormClosingEventArgs e)
        {
            frmRSASignature RSASignatureCipher = new frmRSASignature();

            RSASignatureCipher.Close();
        }