private void button1_Click(object sender, EventArgs e) { b12 = new ClaseBlowfish("04B915BA43FEB5B6"); string mensajebox = this.textBox1.Text; cipherText = b12.Encrypt_CBC(mensajebox); this.textBox3.Text = cipherText; }
private void button2_Click(object sender, EventArgs e) { if (b12 != null) { string textobox = b12.Decrypt_CBC(cipherText); this.textBox2.Text = textobox; } else { MessageBox.Show("Ingrese una nueva palabra"); } b12 = null; }