public Client() { RsaHelper rsa = new RsaHelper(); PublicKey = rsa.PublicKey; _cryptor = new TransmissionCryptor(rsa.PrivateKey, ServerPublicKey); }
public Server(string clientPublicKey) { _cryptor = new TransmissionCryptor(ServerPrivateKey, clientPublicKey); }