I've been reading the Wikipedia Article on the Diffie–Hellman Problem and I've been wondering whether I understood it correctly, because if I did it seems fairly easy to solve.
The Diffie–Hellman problem is stated informally as follows:
Given an element $g$ and the values of $g^x$ and $g^y$, what is the value of $g^{x\cdot y}$?
We know: $g$, $m = g^x$ and $l = g^y$. Couldn't we simply solve the last two equations for x and y respectively and in a few more steps come up with the following result?
$g^{x\cdot y}=g^{\frac{\ln(m)\cdot \ln(l)}{\ln(g)^2}}$
True, if you can calculate the discrete logarithm, then it would be easy. But that's hard too, e.g. see Wikipedia for more details.