In this paper we will investigate the theory behind elliptic curve cryptography Diffie-Hellman key-exchange. To begin with, explaining what cryptography is and explaining how some different cryptography methods work. Elliptic curve cryptography is a public-key encryption which is based on algebraic structures of an elliptic curve over a finite field. This will be illustrated with examples, definitions and figures.