Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to write coding in C#,but nowadays I worry about the hacker that can hack my code and edit my coding.... Could you give me an idea to solve this problem? Thank In advanced......
waiting to hearing from you.................................
Posted

Just because you don't like the answers you got doesn't mean you have to 1-vote them. If you want to protect your code, they ONLY way to do that is to write unmanaged code, which you cannot do in .Net. If you're using .Net, your ONLY recourse is obfuscation, and even the best obfuscators are not entirely secure. As I have already stated, you can make it difficult for the devoted hacker to get to your .Net code, but you can NOT make it impossible.

You don't have to like this answer, either, but I'm not here to blow sunshine up your ass.
 
Share this answer
 
v2
Comments
Richard MacCutchan 13-Dec-11 10:02am    
That silver tongue of yours ... :)
Obfuscate and keep your code on secure computers that are not connected to the internet and used only by people who are unable to program them.
 
Share this answer
 
Comments
Nikil S 13-Dec-11 10:25am    
+5
RaviRanjanKr 13-Dec-11 16:06pm    
My 5!
If you're talking about .Net (any language), you can't, not completely. You can only make it hard on them via obfuscation.
 
Share this answer
 
Hi,

you can obfuscate your DLL logic or you can create some web services , which contains your complex logic there. and other application will consume that service.

by that way you may secure your code.

hope this will help you,

thanks
-amit.
 
Share this answer
 
There is .Net Obfuscator that you can use to protect your code (to some extent). However, what it does to present your code to any 'hacker' in an unfamiliar way but it's no guarantee that your is completely secured. Another means is creating a Web Service that your application can consume (which means that ur application will/may have to go online always, but it's more secured).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900