Jeff Yeager
Jeff Yeager

Reputation: 61

Source Code Protection

When you compile a program to publish with Visual Studio 2010, does that have any advanced methods to keep your program being decompiled to source code? Are there any methods you would use to encrypt yoursource code before compiling?

Upvotes: 3

Views: 5338

Answers (7)

Eric1101000101
Eric1101000101

Reputation: 561

Wibu Systems offers a solution that encrypt the binary files which will preventing reverse engineering.

https://www.wibu.com/uk/products/protectionsuite/axprotector-ip-protection.html

Upvotes: 0

user5732595
user5732595

Reputation: 1

Best protectors are confuser ,engima and themida

Upvotes: 0

logicnp
logicnp

Reputation: 5836

You can use obfuscators which employ various techniques like class/method name renaming, string encryption, method call hiding, etc. Even if someone were to view your code in a disassembler, he would not be able to make any sense out of it.

DISCLAIMER: I work for LogicNP Software, the developers of Crypto Obfuscator

Upvotes: 1

Jason Yost
Jason Yost

Reputation: 4937

VS 2010 comes with Dotfuscator community edition which will obfuscate your code to a point making it harder to read once decompiled. The only real choice is to encrypt your code if you need the absolute best security. You might want to check out the paid edition http://www.preemptive.com/products/dotfuscator/overview to see if it suits your needs and budget

Upvotes: 1

lesscode
lesscode

Reputation: 6361

No, there's really no way to prevent a managed assembly from being decompiled back into source code. The best you can hope for is obfuscation, which can do quite a good job of making the decompiled code hard to understand.

Upvotes: 1

orlp
orlp

Reputation: 117681

VS and any other good compiler make optimalizations. Solely these optimalizations are often enough to make your application resist reverse engineering attempts.

This will not encrypt constants in your program so mypass will still be found as mypass in the binary. You need an encryption program for that.

Alas I have no idea what the good and bad encryption programs are for binaries so I won't suggest any.

Upvotes: 0

user583619
user583619

Reputation: 40

Visual Studio by default does not apply any form of enhancements nor modify the compiled binaries other than chosen optimization setting. There are however protectors you can make use of. Remember UPX? Well upx is still a very viable method of encrypting your binaries altough of course it all depends on your needs.

Upvotes: 1

Related Questions