예제 #1
0
        private void btn_Decrypt_Click(object sender, EventArgs e)
        {
            //RSA测试实例
            string oldData = txt_Encrypt.Text;
            RSA    rsa     = new RSA();
            //rsa.CreateRSAKey();
            string newData = rsa.RSADecrypt(oldData);

            txt_Decrypt.Text = newData;
        }