private void button4_Click(object sender, EventArgs e) { Encrypt_Helper_DG.RSA_Keys keys = Encrypt_Helper_DG.RSA_GetKeys(); StringBuilder builder = new StringBuilder(); builder.Append("RSA_PublicKey ----- ----- ----- ----- ----->\n\n"); builder.Append(keys.PublicKey); builder.Append("\n\nRSA_PrivateKey ----- ----- ----- ----- ----->\n\n"); builder.Append(keys.PrivateKey); richTextBox_OutPut.Text = builder.ToString(); }
//Generate RSA_Keys private void button1_Click(object sender, EventArgs e) { Encrypt_Helper_DG.RSA_Keys rsaKey = Encrypt_Helper_DG.RSA_GetKeys(); textBox1.Text = rsaKey.PublicKey; textBox2.Text = rsaKey.PrivateKey; }