SIGN UP MEMBER LOGIN:    
ARTICLE

Securing your .Net Assembly code

Posted by Kirtan Patel Articles | Security in .NET September 16, 2010
Tips on how to secure your .net code from crackers.
Reader Level:

Securing your code .net assembly code

I want to present some ideas for how you can secure your coded .net application.

.net assemblies /executable contain instruction codes and some data about data that is contained in them that is relatively easy to de-compile with tools available in market like Dot Net reflector.

Tools like Dot net Reflector can de-compile the assembly and it shows the code that is nearly the same as the original code of the .net assembly. If our Application contains some critical code/secret code that we don't want the user to see then we can do that using tools like reflector.

 So what we can do to protect our .net code?

We can do following things.

Implement Server based solution like Web Service or Asp.net application when you implement this type of solution your solution can be accessible by browser so there is no chance that user can see the code of assemblies.
When you feel that it's not possible to use Server based solution, use obfuscator that is  shipped with Visual Studio 2010 that can rewrite your code such that it's hard to understand and follow by reverse engineering.
If your application contain some secret code then put that secret code in Native DLL and call that methods that contain secrete code with P/Invoke .
 










Note:
- approach 2 and 3 can still can be decoded by application cracker who is much better in skill.

Login to add your contents and source code to this article
share this article :
post comment
 

simple and sharp

Posted by muthu karthikeyan Sep 09, 2011

what are the methods by which a site manager or designer can identify or get acess to the users' pasword entering the site?

Posted by mojtaba moradi Mar 04, 2011
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor