AppsIndDemIndDemShanks Discrete Logarithm DemonstrationSolve gx≡a(modp)g^x\equiv a\pmod pgx≡a(modp) using baby steps and giant stepsBase ggg:Target aaa:Modulus ppp:Start AlgorithmNext Step ➡️ResetShanks’ methodWe seek iii and jjj such that gis+j≡a(modp)g^{is+j}\equiv a\pmod pgis+j≡a(modp).1Find hhh such that gh≡1(modp)gh\equiv1\pmod pgh≡1(modp).2Construct and sort the values ahj(modp)ah^j\pmod pahj(modp) for 0≤j<s0\leq j<s0≤j<s.3Search the table for successive values gis(modp)g^{is}\pmod pgis(modp).4A match gives indga=is+j\operatorname{ind}_g a=is+jindga=is+j.