I am trying to understand the Diffie-Hellman (DH) algorithm because I would like to have two computers communicating with each other but without a third one knowing what they are saying, but also exchanging the secret key they will use in an insecure channel.
The thing is that the third one also knows how the DH will process, namely, the constant parameters. More specifically p and g:
So the question is, if I know p and g, can I discover that Bob and Alice will use 8 as their secret key?