Cryptography, Cybersecurity.
SecureRandom(),elParams)); AsymmetricCipherKeyPair pair = pGen.GenerateKeyPair(); // Encrypt ElGamalEngine cryptEng = new ElGamalEngine (); cryptEng.Init(true, pair.Public); byte[] data = Encoding.ASCII.GetBytes(str); byte[] enc = cryptEng.ProcessBlock(data,0, data.Length); // Decrypt ElGamalEngine