protected override void EncryptionHandler(Connection connection, MemoryStream src, int srcOffset, MemoryStream dst, int dstOffset) { if (connection.encryptionLevel <= 1) { Craptography.XOR(2177, src, srcOffset, dst, dstOffset); return; } EACServer.Encrypt(connection, src, srcOffset, dst, dstOffset); }
protected override void DecryptionHandler( Connection connection, MemoryStream src, int srcOffset, MemoryStream dst, int dstOffset) { if (connection.encryptionLevel <= 1) { Craptography.XOR(2161U, src, srcOffset, dst, dstOffset); } else { EACServer.Decrypt(connection, src, srcOffset, dst, dstOffset); } }