Apex › Cryptography

ElGamal encryption

Public-key encryption built on Diffie–Hellman: hide a message by multiplying it with a fresh shared secret only the private-key holder can rebuild. Encryption is randomized (the same message encrypts differently every time — semantic security) and multiplicatively homomorphic (multiply ciphertexts to multiply plaintexts). Encrypt, re-roll the randomness, and watch the homomorphism — with real modular arithmetic.

More in Cryptography