Help Desk
HomeDashboardLog inRegister
master
master
  • NETGuard.IO - Help Desk
  • Getting started
  • Obfuscation Features
    • MSIL Code Encryption
    • Constants Protection
    • DRM Protection
    • Hide Call Protection
    • Code Flow Protection
    • Name Protection
    • Anti Debug Protection
    • Anti Dump Protection
    • Native Shield Protection
  • F.A.Q
    • Payment
      • Pricing Plans
      • What are the payment methods ?
      • I don't use this service anymore, refund ?
      • What is a 'token' ?
      • Obfuscation failed, refund ?
    • Obfuscated file
      • "Could not create SSL/TLS secure channel" error
      • Protected file is detected as a virus ?
    • Personal Data
      • Is my personal data safe ?
  • Obfuscation Tips
    • Updating my protected file ?
    • Program that uses JSON data
    • Protect multi-threading tasks
    • You also use VMProtect ?
    • Adding more security ?
Powered by GitBook
On this page

Was this helpful?

  1. Obfuscation Tips

Protect multi-threading tasks

Multi-threading task are meant to increase your file's task quickness, usually because your program relies on quickness to perform important task.

Obfuscation adds code to your file, and therefore the required time to perform your program's tasks is increased.

That is why you should always exclude method that contains multi-threading task from obfuscation.

Before doing so, make sure no sensitive data is in the same method, and if sensitive data is in the same method, put it in a separated method.

[Obfuscation(Exclude = true)]
public void RunCheckCombolist()
{
    Stopwatch watch = new Stopwatch();
    watch.Start();
    Parallel.For(0, 100000, i =>
    {
        Thread.Sleep(1);
        counter++;
    });
    watch.Stop();
    Console.WriteLine("Seconds Elapsed: " + watch.Elapsed.Seconds);
    Console.WriteLine(counter.ToString());
    Console.ReadKey();
}
PreviousProgram that uses JSON dataNextYou also use VMProtect ?

Last updated 5 years ago

Was this helpful?