Encrypt C# code
I work with .net c# winforms, selling my application to common users, however, a lot of people try to see the codes of my application, they wanted to know some solution to encrypt the code
6 Replies
$obfuscation
"Then finally, there is that question of code privacy. This is a lost cause. There is no transformation that will keep a determined hacker from understanding your program. This turns out to be true for all programs in all languages, it is just more obviously true with JavaScript because it is delivered in source form. The privacy benefit provided by obfuscation is an illusion. If you don’t want people to see your programs, unplug your server."
- Douglas Crockford
https://softwareengineering.stackexchange.com/a/155133
* Spend your effort on putting proprietary things in your api, and keeping the distributed code as empty as possible
* Use AuthN/AuthZ to control who/what/when/etc...
* Free obfuscation is worth the amount your paid for it -- it's already broken and most decompilers out there can make sense of it.
* Paid ofbuscation will bankrupt you unless you have a very strong revenue stream and can justify the additional cost with gained sales
* The "threat" of someone hijacking your UI and shimming it to make it provide them money is not a real threat. If this is legitimate software, you can ruin their business with lawsuits
- Cisien
Software Engineering Stack Exchange
Is it important to obfuscate C++ application code?
In the Java world, sometimes it seems to be a problem, but what about C++? Are there different solutions?
I was thinking about the fact that someone can replace the C++ library of a specific OS wit...
If you don’t want clients having working code move it to a server and request the results from the ui viewmodels
yeah, assume any code you give to a customer will be reverse engineered eventually
If accessing server is not possible, you can separate the confidential algorithm and compile (and obfuscate) it into a native DLL and call it from the remaining code (managed code) with
PInvoke
. Deciphering obfuscated native binary is more challenging.that's obfuscation, which is summed up in the tag posted above
it's a roadblock but ultimately won't stop someone who wants it enough