Introduction
Packets that are sent between the client and server are encrypted, Hi-Rez uses Salsa20[1] which is a rotating key XOR cipher to do that using the Crypto++[2] C++ library.
The client generates a random KEY/IV[3][4] pair that it sends to the server using an unencrypted packet when trying to log in.
The KEY/IV is stored in an encrypted binary blob[5] using the Diffie-Hellman[6] key exchange in the packet so that the server can initiate its own Salsa20 encryption/decryption.