示例#1
0
文件: Form1.cs 项目: Yersen/RSA
 private void button1_Click(object sender, EventArgs e)
 {
     plaintext     = ByteConverter.GetBytes(listBox1.Text);
     encryptedtext = RSACipher.Encryption(plaintext, RSA1.ExportParameters(false), false);
     listBox1.Text = ByteConverter.GetString(encryptedtext);
 }