Hey,
I just wanted to have a small discussion about the way,
the server handles the cryption module..
Since as far i can see the server loads the cryption module twice per client!!!
Now i edited the client to use 1 key instead 1 for incoming 1 for outgoing.
That isn't really needed though as using 2 modules shouldn't be that big of a problem.
But ok here's the deal currently the 317 servers.
generate a key for each new connection.
The client sends it back + a client key + 50 stuff..
So its the server key but increased with 50 yeah ..
We could just remove the whole client sending the keys but oh well..
Lets just keep the client the same.
As the problem lies with the server.
Why not generate 1 key at server startup??
Now for each user store his cryption values seperate.
And before handling a incoming packet set the cryption values to those of the user and run the getNextKey function and then read the values again from cryption into the user values.
so you will only have 1 cryption for incoming and 1 for outgoing.
By editing the client you could set incoming + outgoing to the same key so just 1 cryption module is used :)??
Shouldn't this speed the servers up by a load + save memory ?
Security!
Now so far i can see the security isn't really compromised.
As the opcodes are still random just not per client but per server restart.
its 5:45 am
Well yeah its that time in 15minutes i promised to call my gf to make sure shes awake on time :p.
I didn't feel like sleeping but am tired as hell right now!



Reply With Quote![[317] Cryption](http://ragezone.com/hyper728.png)



