Re: Strong Namining An Assembly
Jason Capriotti <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.web |
|---|---|
| Message-ID | <E74ADC1C6286D04D93D2F4A7800E774402B8DFD4@C-GEM-RUBY.mtolympus.partners.directs.com> |
I think the main goal of strong naming is to guarantee an assembly's uniqueness in any environment. One benefit of this is that two companies can have an assembly with the same name installed in the GAC on a single computer. The assemblies will be unique because the keys that the assemblies were signed with are different. It sounds like what you want is to obfuscate the DLL, or do something similar to what Dino suggests below.. - Jason -----Original Message----- From: Discussion of building .NET applications targeted for the Web [mailto:[email protected]] On Behalf Of Dean Cleaver Sent: Wednesday, November 29, 2006 2:57 PM To: [email protected] Subject: Re: [DOTNET-WEB] Strong Namining An Assembly Look up StrongNameIdentityPermission I think. Or at least poke around in System.Security.Permissions - basically I believe you can flag methods (or entire classes - I am not sure) that they can only be called by assemblies signed with a given key. I have used something similar to ensure that a certain method could only be overridden if the inheriting assembly was signed with my key. HTH Dino -----Original Message----- From: Discussion of building .NET applications targeted for the Web [mailto:[email protected]] On Behalf Of Jeff Sent: Thursday, 30 November 2006 09:49 To: [email protected] Subject: [DOTNET-WEB] Strong Namining An Assembly Can anyone please tell me if strong naming an assembly will force it to only be used by apps that have the client snk key? I have a .net 1.1 app and some separate 1.1 assemblies that I will give out to people. I want to make sure that they can not write their own app and use the assemblies. It seems that if I strong name it, this will prevent people from writing their own apps and calling my assembly/methods. I understand that doing this will also allow my main app to know if my assemblies have been tampered, but my other concern is other people using my assemblies. Advice appreciated. Thank You. =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com