Included is a pseudo-code description of the Pohlig-Hellman algorithm based on [6] and [4].
for i=1to i=k for j=0to find using Shank's algorithm
for j=0to
find using Shank's algorithm