I watched a YouTube video about Diffie-Hellman called "Diffie-Hellman Key Exchange", and it said after doing some modulo operations with the public modulus and generator and the random private numbers, you eventually arrive at a shared secret, or key between Bob and Alice (or whoever is exchanging data). Now that you have the key, how do you use the key to encrypt and decrypt data over whatever channel you are sending over? Do you use the key as the generator? Please give a mathematical example of how to encrypt and decrypt using the key.
closed as too broad by e-sushi, archie, DrLecter, Seth, John Deters Oct 17 '14 at 3:02
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
Typical scenario is to run the raw shared secret through a key derivation function to generate keys for any symmetric primitives they will use.