.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
abhays
Clintonzz
cathyhill345
arronlee
mattyclown

Home >> Interview Question >> VB.Net >> Post New Question Subscribe to Interview Questions

How to prevent my .NET DLL to be decompiled?

Posted By :Ghanashyam Nayak     Posted Date :December 10, 2010    Points :15   Category :VB.Net 
By design .NET embeds rich Meta data inside the executable code using MSIL. Any one can easily
decompile your DLL back using tools like ILDASM (owned by Microsoft) or Reflector for
.NET which is a third party. Secondly there are many third party tools which make this decompiling
process a click away. So any one can easily look in to your assemblies and reverse engineer them
back in to actual source code and understand some real good logic which can make it easy to
crack your application.
The process by which you can stop this reverse engineering is using "obfuscation". It's a technique
which will foil the decompilers. There are many third parties (XenoCode, Demeanor for .NET)
which provide .NET obfuscation solution. Microsoft includes one that is Dotfuscator Community
Edition with Visual Studio.NET.

You can also find related Interview Question to How to prevent my .NET DLL to be decompiled?  below: 

Can you allow class to be inherited, but prevent the method from being over-ridden?

  
Yes, just leave the class public and make the method sealed. (More...)

How will you prevent the user from viewing the text of the Stored Procedure?

  
We can use with Encryption in the Stored Procedure.

CREATE PROC MySample
WITH ENCRYPTION
AS
SELECT * FROM Employee
GO

EXEC sp_helptext MySample

Here is the result set:

The object's Comments have been encrypted.
(More...)

How to prevent many asp.net development iis to be open

  
VS provides an explicit setting in the property grid of web application/site called Development Web Server - "Always Start When Debugging" which is set to True by default... If you set this Property to be False only one web server instance will be created for the start` up web project.
Reference Link :- http://stackoverflow.com/questions/6889975/how-do-i-prevent-from-many-asp-net-development-iis-to-be-open (More...)

How to prevent class from overriding?

  
We can define the class as sealed in C#.net and "Norinheritable" in VB.NET. (More...)

Can you prevent a class from Inheriting?

  
Yes, by defining the class as 'Sealed' (More...)

How can you prevent your Web services from unauthorized access?

  
The following are the ways to prevent your Web service from unauthorized access:


Using encryption and message-based security.
Using authentication and access controls for the Web service. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend