private void BtnServerGenKeys_Click(object sender, EventArgs e) { EcdhCrypt ecdh = new EcdhCrypt(); ecdh.GenEcdhKeys(); Frm.txtServerPubkey.Text = ecdh.GetPublicKeyHex(); Frm.txtServerPrikey.Text = ecdh.GetPrivateKeyHex(); }
private void BtnServerGenShakey_Click(object sender, EventArgs e) { EcdhCrypt ecdh = new EcdhCrypt(); Frm.txtServerShakey.Text = ecdh.GenShareKeyHex(Frm.txtServerPubkey.Text.ToBytes(), Frm.txtServerPrikey.Text.ToBytes()); }