I have a c# dll which I want to protect from anyone seeing the original source and use it without instructions how to. I was thinking of adding a method for “LicenseKey” which I would pass from my CW app in order to be able to use the dll.
But all that is pointless if c# dll can be decompiled back to source code. Is that truly possible? I don’t wanna distribute my CW app which uses this c# dll so someone can just easily steal the dll and use it in its own app.
There used to be several commercial products to obfuscate .Net code. Those companies died or pivoted - for good reason. Think differently about the problem and a better solution will probably appear.