4.2 ElGamal

The ElGamal Cryptosystem is based on the Discrete Logarithm problem. that means the difficulty of computing a if β = αa(mod p) is known, where p is prime.

In the presented form only numbers can be encrypted; texts must previously be coded suitable.

The ElGamal Cryptosystem consists of three steps
  1. Gernerating the key:


  2. Encryption of a message:


  3. Decryption:

* For the special case, that (p - 1) / 2 is also a prime, there is a known algorithm to compute the Discrete Logarithm problem.


4.2 ElGamal: Sample applet for small numbers


source





4.3 Elliptic Curves