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.