The Diffie–Hellman key exchange relies on the fact that there are efficient algorithms for modular exponentiation, while the reverse operation the discrete logarithm is thought to be a hard problem.
On what type of exponentiation does the Diffie–Hellman key exchange depend on?
modular exponentiation