Diffie–Hellman key exchange
The solution has become known as Diffie–Hellman key exchange.