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); }