b1naryth1ef / chunkymonkey

Minecraft Beta multiplayer server
MIT License
4 stars 0 forks source link

Authentication is broken #4

Open b1naryth1ef opened 11 years ago

b1naryth1ef commented 11 years ago

For some reason, we receive "NO\n" from the authserver on what seems to be a correct request. Investigation is needed. (For now, auth has been disabled until we fix)

toqueteos commented 11 years ago

I just got authentication working for minero, wanna some help?

b1naryth1ef commented 11 years ago

I'm not sure I'll continue updating this fork. Might just contribute to minero. Codebase is just a little messy within CM.

toqueteos commented 11 years ago

Sad to hear you'll be discontinuing this fork.

Just in case you want to finish this issue, or want to do it for your Python server, here's the SHA-1 digest function: https://gist.github.com/toqueteos/5372776

Here you have some utility functions for generating a keypair, the 4 bytes token for 0xFC and 0xFD and also a function to marshal the public key to ASN.1: http://play.golang.org/p/DLVl_Vk5Fp

Then it's just about joining pieces and following Protocol_Encryption#Overview.