Unencrypted connections

Announcements and discussion regarding any projects related to Cyan Worlds' Plasma Engine including (but not limited to) CyanWorlds.com Engine, Drizzle, OfflineKI, PyPRP, and libHSPlasma.

Unencrypted connections

Postby diafero » Sun Jul 31, 2011 4:20 am

I'd like my testing Shard to use an unencrypted connection to the client. This is mainly to make debugging the network communication easier (as the wireshark plugin would also need the keys otherwise), but it could also simplify setting up a basic Shard.
What do I need to configure in Dirtsand and the CWE to disable encryption? Is this even supported?
I prefer e-mails to "diafero arcor de" (after adding the at and the dot) over PMs.

"Many people's horizon is a circle with a radius of zero. They call it their point of view."

Deep Island Shard | Offline KI
diafero
Deep Island Admin
 
Posts: 2970
Joined: Mon May 05, 2008 5:50 am
Location: Germany

Re: Unencrypted connections

Postby phoenix » Sun Jul 31, 2011 4:43 am

I agree with you... The encryption adds to the processing overhead as well, and in a testing environment encryption hides too much. I would also like to know how to turn encryption off. It should not be that hard, since dirtsand has been setup with two versions of moulscripts in the Sandbox wiki , one encrypted and the other unencrypted. So the data is there.
User avatar
phoenix
 
Posts: 88
Joined: Wed May 19, 2010 2:29 am

Re: Unencrypted connections

Postby Deledrius » Sun Jul 31, 2011 8:55 am

phoenix wrote:dirtsand has been setup with two versions of moulscripts in the Sandbox wiki , one encrypted and the other unencrypted. So the data is there.

That's completely not related to the encrypted network communication.
User avatar
Deledrius
Gehn Shard Admin
 
Posts: 1377
Joined: Mon Oct 01, 2007 1:21 pm

Re: Unencrypted connections

Postby phoenix » Sun Jul 31, 2011 9:52 am

That isn't what I implied. All I said is that the data is there in both forms, encrypted and unencrypted. How a coder to chooses to harness that is up to them, but the data is already there.
User avatar
phoenix
 
Posts: 88
Joined: Wed May 19, 2010 2:29 am

Re: Unencrypted connections

Postby Zrax » Sun Jul 31, 2011 10:20 am

phoenix wrote:That isn't what I implied. All I said is that the data is there in both forms, encrypted and unencrypted. How a coder to chooses to harness that is up to them, but the data is already there.


It's still unrelated, since diafero was talking about the network traffic, not the data... Either one can be either encrypted or unencrypted completely independently of the other.

Back to the original question though, there is actually a preprocessor flag in Cyan's code which can disable encryption (namely, "NO_ENCRYPTION")... Although there isn't one in DirtSand yet, modifying it to include such an option would probably be fairly easy. However, that would only help you with the DirtSand side, since the MOULa server will still require encryption (and will boot you out if your connection is not encrypted, unless Cyan changes it on their end).

However, I must say your question came with great timing... Just yesterday, I started playing with an idea to log and analyze the network traffic completely independently of the encryption, by means of adding some special logging code to the client, and a tool to listen to it. If you want to play around with this (and better yet, help me add to it), the code is on github -- the tool itself is plNetLog (also on the H-uru projects), and you'll need the netlog branch of Plasma to make it work.

- Michael
User avatar
Zrax
 
Posts: 206
Joined: Fri Sep 28, 2007 5:19 pm
Location: Waist-deep in a conecano

Re: Unencrypted connections

Postby diafero » Mon Aug 01, 2011 3:36 am

Such a tool definitely sounds interesting.
I still think however that unencrypted connections can make the setup easier - and such an option should be a run-time, not a compile-time flag. But well, e got the sources. maybe I can do something about that ;-)
I prefer e-mails to "diafero arcor de" (after adding the at and the dot) over PMs.

"Many people's horizon is a circle with a radius of zero. They call it their point of view."

Deep Island Shard | Offline KI
diafero
Deep Island Admin
 
Posts: 2970
Joined: Mon May 05, 2008 5:50 am
Location: Germany

Re: Unencrypted connections

Postby Christian Walther » Mon Aug 01, 2011 4:38 am

I haven’t looked at plNetLog yet, but I’m curious: Does it do the same thing as a'moaca's Wireshark plugin? Or what are the differences and advantages?
Christian Walther
 
Posts: 443
Joined: Sun Jun 08, 2008 3:10 am
Location: Switzerland

Re: Unencrypted connections

Postby phoenix » Mon Aug 01, 2011 5:14 am

Zrax: Either one can be either encrypted or unencrypted completely independently of the other.


Aaaaah, got it! click! Would be nice if both could be set (as you say independently) at runtime and not compile time.
User avatar
phoenix
 
Posts: 88
Joined: Wed May 19, 2010 2:29 am

Re: Unencrypted connections

Postby diafero » Mon Aug 01, 2011 12:52 pm

Christian Walther wrote:I haven’t looked at plNetLog yet, but I’m curious: Does it do the same thing as a'moaca's Wireshark plugin? Or what are the differences and advantages?

If I understood it correctly, it's different: It does not catch the packets "on the wire" and then decodes them, but instead relies on the client making the packages available to the logger (on a level where encryption is already handled, but little more). That means it has the advantage of being encryption transparent, and the disadvantage on not being as independent from the tools that are debugged as a dedicated wireshark plugin.
I prefer e-mails to "diafero arcor de" (after adding the at and the dot) over PMs.

"Many people's horizon is a circle with a radius of zero. They call it their point of view."

Deep Island Shard | Offline KI
diafero
Deep Island Admin
 
Posts: 2970
Joined: Mon May 05, 2008 5:50 am
Location: Germany

Re: Unencrypted connections

Postby Zrax » Mon Aug 01, 2011 9:36 pm

Right. I also find the Wireshark GUI a bit cumbersome and constricted for visualizing complex hierarchical data like Plasma messages... But that's probably just preference. The actual reported data should be identical; it's just a matter of how you prefer to look at it ;)

For further information, I redirect you to Mr. Screenshot: http://moul.zrax.net/plNetLog.png ;)
User avatar
Zrax
 
Posts: 206
Joined: Fri Sep 28, 2007 5:19 pm
Location: Waist-deep in a conecano

Next

Return to Plasma Development

Who is online

Users browsing this forum: No registered users and 1 guest