Search code examples
c#strongname

C# - Using strongname isn't protecting the assembly


I have signed my assembly with strong-name.

I have done it from VS2005 Solution Explorer -> Assembly Right-click -> Signing.

But still RedGate's .net reflector is able to browse through the code.

Then what is the use of assembly signing?


Solution

  • Assembly signing is not obfuscation. An assembly's strong name guarantees the origin of the assembly (i.e. an assembly signed with your private key can only have been written by you), and it guarantees that the assembly hasn't been tampered with.

    To reiterate, if you want to clamp down on Reflector, obfuscate your assembly.