Can I send encrypted request from the server to the client?

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
Alex
Posts: 131
Joined: 03 Sep 2006, 09:15

Can I send encrypted request from the server to the client?

Post by Alex »

Hi

I saw that I can send encrypted requests from the client to the exdtension, but can I send encrypted request from the extension to the client, with sendExtensionResponse method or something similar?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Actually there is no encryption support at the moment.
Also recently we have discussed the real benefit of this feature in a long post. You can learn all the details and join the discussion here:
http://forums.smartfoxserver.com/viewtopic.php?t=7839
Lapo
--
gotoAndPlay()
...addicted to flash games
Alex
Posts: 131
Joined: 03 Sep 2006, 09:15

Post by Alex »

I see.

Actually I'm using custom encryption in SFS 1.6 and I want to port it to the new version. What I do is JSON serialize the object - then encrypt it - then send it to server.

I see that you are using new binary protocol instead of JSON - so I guess you are using some sort of binary serialization/deserialization which I guess is more efficient than JSON.

Do you have a quick example on how to use the new serialization?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Serialization is full transparent to the developer. Explaining how it work it would take a long time. We support almost 20 different data types each one with its binary encoding/decoding.

I would suggest a much simpler solution.
Encode your data in whatever way you prefer. JSON would be good too, then encrypt it and transmit the whole thing as a ByteArray.
The protocol compression will help you keeping the size to a minimum
Lapo
--
gotoAndPlay()
...addicted to flash games
Alex
Posts: 131
Joined: 03 Sep 2006, 09:15

Post by Alex »

Hi

I found what I was looking for - I just needed this class DefaultSFSDataSerializer.
Post Reply