KingofGamesYami, on 21 December 2016 - 07:51 PM, said:
Piorjade, on 21 December 2016 - 07:39 PM, said:
Well we're talking about Minecraft here, folks.
Your (in this situation) friend needs to know which channel to connect to. (Again, between 1 and 65535, so the 3rd guy (I'm calling him "hacker") needs to know that)
The rest is already explained.
On line 265 you give the "hacker" this information.
On the channel, which the 2 people specified.
If you somehow want to find out, which channel it is, you'd need to open up all channels and listen on them at the same time.
With one computer you can open up 129 channels, maximum.
The 2 users specify ANY channel they want, between 1 and 65535.
The "hacker" would need about
500 --> 86 (6 modems per comp.) computers to cover every channel if he REALLY wants to get the key.
To clear that up:
Example people:
Tim (host)
Paul (client)
Bob (hacker)
Tim tells Paul (however, for example via Skype) which channel they should connect to. --> Bob doesn't know which they specified
Tim starts the program up, Paul starts his program AFTER that (I'm reffering to the example codes for now).
--> Ones Paul connects, Tim's program generates a new channel-number, a key and sends them both to Paul (well technically to everyone in their channel)
--> Tim immidiently closes his connection, opens a new one on the generated channel and listens on that one
--> Paul immidiently closes his connection too, connects to the channel he got and uses the key he got to decrypt and encrypt every message he gets/sends
This is the most simple explanation I could think of.
Edited by Piorjade, 21 December 2016 - 08:09 PM.