Networking RC4 Encryption. Somthing better?

Community Forums/General Help/Networking RC4 Encryption. Somthing better?

Richard Betson(Posted 2012) [#1]
Hi,

I am new to encryption and I would like to know which encryption scheme would be best suited for sending encrypted packets using UDP in a real-time shooter game. Speed is the most important priority here since I will be handling a hundred or more clients on a server.

I am using this RC4 encryption algorithm here:
http://www.blitzmax.com/codearcs/codearcs.php?code=1711

Noel's post ( 'N' ) is pretty fast about 8 milliseconds on my system, but faster is better.:)

I am converting floats and integers to four byte strings and then encrypting them with the above. Then sending them to the client (or vise versa) , then converting them back.

So, is this the best approach to sending encrypted UDP packets?

Thanks,

Last edited 2012