There is a program. This program accepts plugins. Plugins written with C#. I have to encrypt it. But when I use strong obfuscators I have exception. Program doesn't read. How can I fix that ? How can I call strongly encrypted dll from an application. Just confuserex working but its not strong enough.

 private static void LoadDll(byte[] dll, string namespacePlusClass)
                var a = Assembly.Load(dll);
                var myType = a.GetType(namespacePlusClass);
                var methon = myType.GetMethod("Main", BindingFlags.Public | BindingFlags.Static);

                if (methon != null)
                    methon.Invoke(null, null);
            catch (Exception ex)
  • 1
    Why do you "have to encrypt" your plugin dll? If the main app requires it then it should exactly specify how to encrypt it.
    – Robert
    Mar 3 '20 at 18:12
  • yes but program isn't mine so it doesn't expect that way.
    – dfsvs
    Mar 3 '20 at 20:05
  • Hi and welcome to RE.SE. Now please be specific are we talking encryption or obfuscation. Either one is likely not used and your wording suggests just that. Obfuscation is merely the attempt to hide something from plain view. Encryption requires some sort of key as additional ingredient. And what's more, encryption in a scenario like the one you describe makes little to no sense. That software would have to carry the private key (or passphrase) in order to decrypt anything. So this makes the whole exercise pointless.
    – 0xC0000022L
    Mar 4 '20 at 8:01
  • Obfuscation I meant
    – dfsvs
    Mar 5 '20 at 19:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.