PC Review


Reply
Thread Tools Rate Thread

Deployment / Security / Strong Names

 
 
Jimski
Guest
Posts: n/a
 
      23rd Mar 2005
Hi all,

I am creating an assembly that will access a database to return record
details.

I need to deploy it to a 3rd Party and they will then be able to use
the assembly in their code to access the methods contained within the
assembly. As this assembly will effectively access the database then I
need to provide some security to stop unwanted access.

I am confused. If I deploy this assembly with a strong name and a
public key what will stop another user copying the assembly and
accessing it themselves using say reflection? I am slightly unsure what
I will need to provide the 3rd party with to allow them access to the
assembly and what I will need to do with the assembly to stop "anybody"
accessing it?

Could somebody please offer some advice please?


Thanks in advance
Jimski

 
Reply With Quote
 
 
 
 
Bruce Wood
Guest
Posts: n/a
 
      23rd Mar 2005
Strong naming and the GAC give you some assurances, but not all of the
ones you're after, so I think you'll need more than just a strong name.

First of all, a strong name helps out with versioning, so if you're
deploying to a third party then you should definitely use strong
naming. That way if you release v2.0 of your code and the third party's
application depends upon v1.0, it won't break the contract, at least.
(The data is a whole other question, of course.)

The second thing that a strong name gives you is assurance that nobody
else can hack your code, alter it, and pass it off as your oroginal
DLL. Insert a trojan, for example.

However, it's still a DLL, and anyone can call it. I'm sure that there
are schemes for preventing unauthorized access. (Have to unlock the DLL
with a password, or some other such thing?) I've never tried doing it,
though, so someone else will have to comment on best practices.

Have you tried asking in / looking in microsoft.public.dotnet.security?

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does strong naming require deployment in GAC? Bruce Wood Microsoft C# .NET 7 28th Dec 2005 05:51 AM
Question about deployment with strong name Ray Microsoft VB .NET 3 25th Nov 2004 01:18 PM
Strong Names =?Utf-8?B?YW5keWhpbms=?= Microsoft Dot NET Framework 3 23rd Nov 2004 08:55 PM
RE: Strong naming and auto deployment =?Utf-8?B?VHJhdmlzIE1lcmtlbA==?= Microsoft Dot NET Framework Forms 2 15th May 2004 12:01 PM
Strong name + FullTrust is not enough for web deployment ? Pierre Arnaud Microsoft Dot NET Framework 0 22nd Mar 2004 08:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:34 AM.