private void button1_Click(object sender, EventArgs e) { RSACrypt crypt = new RSACrypt(); var result = crypt.AssignNewKey(); }