Cryptography, Cybersecurity.
cryptEng.Init(true, pair.Public); byte[] data = Encoding.ASCII.GetBytes(str); byte[] enc = cryptEng.ProcessBlock(data,0, data.Length); and to decrypt, we use our private key (pair.Private): ElGamalEngine decryptEng = new ElGamalEngine(); decryptEng.Init(false, pair.Private); byte[] plain =