William McHale's Perl-Java ElGamal system revised use this to decrypt once you have "a" Also see C. Toole's modification to the Perl code. '.

Chris McCubbins' SHANKS DLP Solver
euclid.h

Jeff Walton's DLP Solver
BinaryHeap.java
DLP.java

From David Bishop's book "Cryptography with Java Applets"
instructions
BigIntegerMath.java
TestDiscreteLogApplet.java
log.html needed html file

   Christian Wagner has also contributed another solution 
      His program 'pohlighellman.cpp' requires a large size integer
      package that can be obtained free from the internet. It is easy
      to download and install----
instructions
pohlighellman.cpp