1 2 3 4 5 6 7 8 9 10 11
//ElGamal Key Generation p = 11 e1 = 2 d = 3 e2 = modulo(e1^d,p) disp("Public key:") printf("(%d,%d,%d)",e1,e2,p)