The Diffie–Hellman key-exchange protocol [01F4]
First some pre-mathematical intuition:
In the illustration, paint colours are used as a metaphor for numerical data; the mixing of paint is a metaphor for applying efficiently computable arithmetic operations to numbers that are prohibitively difficult to undo. It is important, above, that mixing of paints is a commutative operation, since otherwise Alice and Bob would not end up with the same secret colour. Modular arithmetic provides one source of such operations: modular exponentiation is easy to compute, but the inverse operation (discrete logarithm) is very hard to compute.