Asymmetric Key Algorithm-Diffie-Hellman Key Exchange

Asymmetric Key Algorithm
RSA uses asymmetric keys and can be used for signing messages and
encrypting them. A public key is used to encrypt or sign the data. It can only
be decrypted with a private key held by the receiver. RSA is slower than
symmetrical key algorithms, but more secure if a large enough key is used.
A key length of 2048 bits is recommended.
Diffie-Hellman Key Exchange
The Diffie-Hellman protocol solves the problem of exchanging keys over an
insecure network. Each device creates a public key and a private key. They
exchange their public keys in the open, unencrypted. They each then use the
other device’s public key and their own private key to generate a shared
secret key that each will use.