RE: Security of C# dll

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



The answer is ‘it depends’.

When C# and VB.NET code is compiled, it is compiled to MSIL (Microsoft
Intermediate Language), and during this process a large amount of metadata is
created which is easily readable and can be used for many things such as
reverse engineering and code interoperability.

Take a look at the .NET Reflector (http://www.aisto.com/roeder/dotnet/) to
get an idea of what can be done with this metadata.

In order to eliminate much of this useful information, you can obfuscate the
data with something like
Dotfuscator(http://www.preemptive.com/products/dotfuscator/) which renames
all of the names and other telling bits of data within the assembly so as to
make reverse engineering much more difficult.

Brendan


"Homer Simpson" wrote:

> Hi Everyone,
>
> How secure are C# DLLs? I knowVBA can easily be opened with a variety of
> tools found on the internet but how about C#? How can I make my DLLs more
> secure?
>
> Thanks,
> Scott
>
>
>
.



Relevant Pages

  • Re: Protecting your code
    ... > So It is the most secure to write code in Win32 environment since all the ... development would be spending time creating new versions, ... reverse engineering old code, and trying desperately to handle bugs they ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Security of C# dll
    ... My original concern was just preventing my dlls from being decompiled... ... Scott ... > Define what you mean by "secure". ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: hiding macro coding
    ... > The most secure way is to use VB 6 to automate your Word code and distribute ... > VB DLLs with a minimal amount of code in the Word template. ...
    (microsoft.public.word.vba.beginners)
  • Re: Security of C# dll
    ... www.cantelmosoftware.com (at the moment only in Italian language) ... > How secure are C# DLLs? ... I knowVBA can easily be opened with a variety of ... How can I make my DLLs more ...
    (microsoft.public.dotnet.languages.csharp)
  • Security of C# dll
    ... How secure are C# DLLs? ... I knowVBA can easily be opened with a variety of ... tools found on the internet but how about C#? ... How can I make my DLLs more ...
    (microsoft.public.dotnet.languages.csharp)