How do you encrypt data between client and server running in Flash and Java?
Posted
by
ArmlessJohn
on Stack Overflow
See other posts from Stack Overflow
or by ArmlessJohn
Published on 2010-12-22T19:49:27Z
Indexed on
2010/12/22
19:54 UTC
Read the original article
Hit count: 234
We have a multiclient system where the client is written in Flash and the server is written in Java. Currently, communication is done in Flash by usage of flash.net.Socket
and the protocol is written in JSON. The server uses a custom port to receive connections and then proceed to talk with each client. As expected, data is sent and received on both fronts as raw bytes, which are then decoded as needed.
We would like to encrypt the communication between clients and server. I have some basic understanding about public/private key encryption, but I do not know what is the best way to exchange keys or what libraries are available (on both languages) to do this.
What would be the best strategy to attack this problem and where should I start looking for libraries/methods to implement this encryption?
© Stack Overflow or respective owner