I am trying to make a proxy for the minecraft server and i might be trying to do something that is impossible and i want to know if that's the case.
What i am currently doing is exchanging the public keys that the client and server send towards eachother with my own public keys.
The problem is that the client and server also compute a hash that they send towards the minecraft servers.
The hash is composed(if i remember correctly) from : serverid, server's public key, and shared secret. And because they include the servers public key in the hash that means that the hashes won't match once they get on mojangs servers. At best i could have decryption over the packets that the client sends.
Is there a way of making this exchange of keys work? Or is my only solution to give my program my login details and authentificate to the mojang servers and act fully like a client ?
I am trying to make a proxy for the minecraft server and i might be trying to do something that is impossible and i want to know if that's the case.
What i am currently doing is exchanging the public keys that the client and server send towards eachother with my own public keys.
The problem is that the client and server also compute a hash that they send towards the minecraft servers.
The hash is composed(if i remember correctly) from : serverid, server's public key, and shared secret. And because they include the servers public key in the hash that means that the hashes won't match once they get on mojangs servers. At best i could have decryption over the packets that the client sends.
Is there a way of making this exchange of keys work? Or is my only solution to give my program my login details and authentificate to the mojang servers and act fully like a client ?