# How to encrypt plain-text message using Diffie-Hellman algorithm

Let's say bob says Hi and Alice says Hello, With the knowledge of n and g, how can we encrypt those message using Diffie-hellman or any ECDH

• Diffie-Hellman is a key exchange protocol. With this protocol, the parties agree on a key and transfer messages by using a symmetric encryption algorithm like AES. – kelalaka Nov 18 '18 at 19:37