2 ms·
I _think_ the number you're talking about is the session key. The session key is agreed by both parties. Key Agreement is actually some pretty clever mathematic
by tialaramex 9y ago
I _think_ the number you're talking about is the session key. The session key is agreed by both parties. Key Agreement is actually some pretty clever mathematics, but it goes like this (except the real numbers are enormous and I've used small ones):
You: "Let's pick a session key, let's use method A, with the magic numbers 15 and 29. I chose my random number, and with A, 15 and 29 the answer was 4."
www.google.com: "Cool yes, method A with numbers 15 and 29 is fine by me. I picked a random number and my answer was 3."
Now both you and Google can determine that the secret session key is 9, because each of you knows _your_ secret random number and the number the other person got by using _their_ secret random number with the special method. But even if the other person lied and always picks the same number, the _result_ is random, because you did you part of the trick properly.
Nobody else knows it's 9, even if they eavesdropped on this conversation taking place, because they need one of the secret random numbers to work it out OR they need to solve a mind-bogglingly hard mathematical problem to get the answer without knowing the secret.