Packet Encryption

Started by
9 comments, last by wodinoneeye 13 years, 9 months ago
You can do first level obtusification simply (and without alot of processor cost) by doing a simple XOR on all the data in the packets.

foreach byte i in buffer { buf = buf XOR key }

the same code is used to 'decrypt it' (since xor is a reversable function)


Do it 4 bytes wide (or maybe wider using SIMD instructions) XOR with either a static or a rotating key system.

Only a little more complex would be a mutated key for each session or other data value sent at login)....


This would give a minimal protection from those too lazy or inexperienced to look at your programs code and decompile it and find the algorythm used.
--------------------------------------------[size="1"]Ratings are Opinion, not Fact

This topic is closed to new replies.

Advertisement