private void btnDecrypt_Click(object sender, EventArgs e) { txtDecrypedData.Text = AsymmetricCryptoEngine.Decryption(txtOutputData.Text, txtPrivate.Text); btnDecrypt.Enabled = false; }
private void btnPrivateKeyExport_Click(object sender, EventArgs e) { Clipboard.Clear(); Clipboard.SetText(AsymmetricCryptoEngine.ConvertXmlToBase64(txtPrivate.Text, true)); }
private void btnEncrypt_Click(object sender, EventArgs e) { txtOutputData.Text = AsymmetricCryptoEngine.Encryption(txtData.Text, txtPublic.Text); btnDecrypt.Enabled = true; }