jatpat / lidgren-network-gen3

Automatically exported from code.google.com/p/lidgren-network-gen3
0 stars 0 forks source link

Limited cryptography options #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently in lidgren, it's only hardcoded XTEA that is allowed as an option if 
you wish to encrypt messages, at least without doing it yourself.

I made a patch that fixes this issue by changing it so that it is a public 
interface, and also added some more ciphers to choose from (AES, DES, 
TripleDES, RC2, and of course XTEA). It also updates the unit tests so that in 
case you add more later, so long as they implement 
Lidgren.Network.Encryption.iNetEncryption, they will automatically be tested 
(assuming they include a constructor that contains a single string).

Note that I did make this in VS2010, so I did have to manually edit some of the 
parts for the csproj patch. It should not be much of an issue though, I just 
wanted to note that in case of issues arising.

Original issue reported on code.google.com by shawnand...@gmail.com on 6 Aug 2010 at 4:05

Attachments:

GoogleCodeExporter commented 9 years ago
Still no response?

Original comment by shawnand...@gmail.com on 17 Aug 2010 at 2:15

GoogleCodeExporter commented 9 years ago
Sorry, haven't had time to review it. Haven't forgotten tho!

Original comment by lidg...@gmail.com on 17 Aug 2010 at 2:41

GoogleCodeExporter commented 9 years ago
Wow. I'm amazed this is still here. Are you sure you haven't forgotten? I mean, 
it has been up for over half a year now. It's probably outdated because of 
changes since then too.

Original comment by shawnand...@gmail.com on 21 Mar 2011 at 4:59

GoogleCodeExporter commented 9 years ago
Yes, sorry about that. I'm trying to figure out how SRP and encryption will 
work in the future, but I haven't had much time lately to work at the project 
:-/

Original comment by lidg...@gmail.com on 26 Mar 2011 at 7:51

GoogleCodeExporter commented 9 years ago
I'm finally refactoring the encryption code; rev 199 contains modifications 
much inspired by your code.

Original comment by lidg...@gmail.com on 16 Apr 2011 at 10:38

GoogleCodeExporter commented 9 years ago
I took your changes and just added the algorithms I added in the original patch.

Original comment by shawnand...@gmail.com on 25 Apr 2011 at 12:10

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks; good job. Added in rev 203.

Original comment by lidg...@gmail.com on 25 Apr 2011 at 4:08