Are Kryonet packets encrypted over the web?

193 views
Skip to first unread message

Jakub S

unread,
Sep 2, 2016, 7:24:54 PM9/2/16
to kryonet-users
Hi everyone. I have a question about packet encryption. Does Kryonet provide any kind of secure packet sending/receiving?

For example, if I have a 'RegistrationPacket' with some Strings/char arrays containing the user's data, if I send it - will it be readable for a 3rd person listening on Wireshark or something? Of course, everything can be cracked, but I'm just asking if Kryonet uses any kind of encryption.

Thanks everyone!

Joachim Durchholz

unread,
Sep 4, 2016, 5:58:41 AM9/4/16
to kryone...@googlegroups.com
Am 03.09.2016 um 01:24 schrieb Jakub S:
> Hi everyone. I have a question about packet encryption. Does Kryonet
> provide any kind of secure packet sending/receiving?

Not by itself.
Kryonet uses java.nio.Selector.open(), which goes through a
SelectorProvider to provide SocketChannels; you can replace that, though
that would then affect *all* network connections that your program opens
so this might be complicated to get right in all the details.
The other approach would be to encrypt or obfuscate your
RegistrationPackets before sending them over the wire. Either don't send
these but an EncryptedRegistrationPacket, or send them but hook into
Kryo to provide an encrypting serializer for handling these.

HTH
Jo

Caveat: I have been meaning to integrate Kryo into my software, but it
didn't happen, so this info is just from reading the docs. I'm just
jumping in because nobody with personal experience has yet answered.
Reply all
Reply to author
Forward
0 new messages