- Snippet from Wikipedia: Discrete logarithm
In mathematics, for given real numbers and , the logarithm is a number such that . Analogously, in any group , powers can be defined for all integers , and the discrete logarithm is an integer such that . In arithmetic modulo an integer , the more commonly used term is index: One can write (read "the index of to the base modulo ") for if is a primitive root of and gcd .
Discrete logarithms are quickly computable in a few special cases. However, no efficient method is known for computing them in general. In cryptography, the computational complexity of the discrete logarithm problem, along with its application, was first proposed in the Diffie–Hellman problem. Several important algorithms in public-key cryptography, such as ElGamal, base their security on the hardness assumption that the discrete logarithm problem (DLP) over carefully chosen groups has no efficient solution.