lidgren-network-gen3 icon indicating copy to clipboard operation
lidgren-network-gen3 copied to clipboard

What is the status of SRP???

Open Spol-RafaSoftware opened this issue 7 years ago • 1 comments

I have been tinkering around with lidgren for a couple of days now. Congrats on the great work!

I have a question though.

How would I go about creating user authentication? I came across SRP in this repo https://github.com/SleeplessByte/lidgren-srp6a which is based on a single argument ctor of NetXTEA class and as such not compatible.

I can see the NetSRP class in the latest lidgren repo though but no samples?

Thank you in advance :)

Spol-RafaSoftware avatar Jun 08 '17 13:06 Spol-RafaSoftware

The way i have done it is to send my client credentials in the connection request. So Enable the connection request message on the server, and when the client connected send the client credentials (that have been encrypted with a private key) to the server.

The other thing you could do is allow anybody to connect and then upon connectionstatus changed to connected, send a new message with the username and password. If its wrong disconnect the user (this is obviously less secure)

willthiswork89 avatar Jul 20 '17 13:07 willthiswork89