473,383 Members | 1,980 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Dll To Dll Security in NET

Hi Guys,
I am doing a research on DLL to DLL security. But so far I am not able
to achieve it. I read articles about Signing the Assemblies, but that
has not answered my question.
Is it possible in .NET framework to achieve Dll to Dll Security.

Goal to achieve
My First DLL is called ABC.DLL
It should only be used by DEF.DLL. No other project or dll should be
able to use this specific dll.
Nov 22 '05 #1
2 1356
Cor
Hi Imran,
My First DLL is called ABC.DLL
It should only be used by DEF.DLL. No other project or dll should be
able to use this specific dll.


Maybe a strange question, but why are you then making a seperate DLL and is
it not in the same project as DEF and in the same DLL?

Just curious.

Cor

Nov 22 '05 #2
JW
Imran,

You could make a link demand for a strong name identity permission. This
gives you the ability to export methods in assemblies that are only callable
from your other assemblies. For instance, you could decorate the public
methods of your ABC.DLL assembly with the attribute below.

[StrongNameIdentityPermission( SecurityAction.LinkDemand,
PublicKey ="<your public
key in hex>")]
public void ABCMethod1()

The tool secutil.exe (part of the .NET Framework SDK) can be used to get the
hex string format of a public key. secutil /? will bring up the help for
the tool.

To achieve fully what you describe, you could include name and/or version
information.

[StrongNameIdentityPermission( SecurityAction.LinkDemand,
PublicKey ="<your public
key in hex>"),
Name="DEF"]
public void ABCMethod1()

Two things to note. First, when using such specific identities, the
assembly in which ABCMethod1 is declared may not be able to call the method
itself. Of course your ABCMethod1 can be a public wrapper around another
internal method which can be called from within the declaring assembly.

Second, a link demand is weaker than a full demand in that, among other
things, only the immediate caller of the method is checked. If you want all
callers on the stack to be checked, make a full demand.

The book .NET Framework Security by LaMacchia, et. al., describes this and
other techniques for implementing a secure assembly. I think this book is a
great reference.

Hope this helps.
--
Jeffrey Wynn
jw@nospam.net
"Imran Masud" <im******@hotmail.com> wrote in message
news:53**************************@posting.google.c om...
Hi Guys,
I am doing a research on DLL to DLL security. But so far I am not able
to achieve it. I read articles about Signing the Assemblies, but that
has not answered my question.
Is it possible in .NET framework to achieve Dll to Dll Security.

Goal to achieve
My First DLL is called ABC.DLL
It should only be used by DEF.DLL. No other project or dll should be
able to use this specific dll.

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: robert | last post by:
well, talk about timely. i'm tasked to implement a security feature, and would rather do so in the database than the application code. the application is generally Oracle, but sometimes DB2. ...
116
by: Mike MacSween | last post by:
S**t for brains strikes again! Why did I do that? When I met the clients and at some point they vaguely asked whether eventually would it be possible to have some people who could read the data...
4
by: Ashish | last post by:
Hi Guys I am getting the following error while implementing authentication using WS-security. "Microsoft.Web.Services2.Security.SecurityFault: The security token could not be authenticated...
0
by: prithvi g via .NET 247 | last post by:
Hi I am a newbie to .NET remoting, I am trying to implementauthorization using SSPI example provided by Michael Barnett. Ihave included the required dll(Microsoft.Samples.Security.SSPI.dll...
1
by: Earl Teigrob | last post by:
Background: When I create a ASP.NET control (User or custom), it often requires security to be set for certain functionality with the control. For example, a news release user control that is...
7
by: Magdelin | last post by:
Hi, My security team thinks allowing communication between the two IIS instances leads to severe security risks. Basically, we want to put our presentation tier on the perimeter network and the...
0
by: Jay C. | last post by:
Jay 3 Jan. 11:38 Optionen anzeigen Newsgroups: microsoft.public.dotnet.framework.webservices.enhancements Von: "Jay" <p.brunm...@nusurf.at> - Nachrichten dieses Autors suchen Datum: 3 Jan...
3
by: Velvet | last post by:
I ran FxCop on one of the components for my web site and the security rules what me to add " tags like the ones listed below: This breaks my ASP.NET application. So my question is,...
1
by: Jeremy S. | last post by:
..NET's code Access Security enables administrators to restrict the types of things that a .NET application can do on a local computer. For example, a ..NET Windows Forms application can be...
2
by: Budhi Saputra Prasetya | last post by:
Hi, I managed to create a Windows Form Control and put it on my ASP .NET page. I have done the suggestion that is provided by modifying the security settings. From the stack trace, I would...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.