Page 1 of 1
Can I send encrypted request from the server to the client?
Posted: 03 Aug 2010, 04:48
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?
Posted: 03 Aug 2010, 10:27
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
Posted: 03 Aug 2010, 11:25
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?
Posted: 03 Aug 2010, 12:07
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
Posted: 03 Aug 2010, 12:56
by Alex
Hi
I found what I was looking for - I just needed this class DefaultSFSDataSerializer.