473,396 Members | 1,755 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,396 software developers and data experts.

Prevent other programmers from using my dll component?

Hi, I've developed a couple of DLL assemblies component to be used with my
main exe application.

Since I need to distribute all the exe and dlls to the user PC, how can I
prevent the user, who might happen to have programming knowledge, from using
the dlls in their own application?

I know this may sound a bit paranoid, but I believe there must be some way
to prevent this. May be I should compile the dlls into the single exe or tie
the dlls to the main exe or something....??

Please advice. Thanks.
Jul 21 '05 #1
3 1655
kjon <2@22.co> wrote:
Hi, I've developed a couple of DLL assemblies component to be used with my
main exe application.

Since I need to distribute all the exe and dlls to the user PC, how can I
prevent the user, who might happen to have programming knowledge, from using
the dlls in their own application?

I know this may sound a bit paranoid, but I believe there must be some way
to prevent this. May be I should compile the dlls into the single exe or tie
the dlls to the main exe or something....??


I don't know exactly how .NET obfuscators work, never having used one,
but you may be able to obfuscate your exe and dll at the same time, so
that name changes in the dll are reflected in the exe. That doesn't
stop anyone from using the dll, but it makes it almost impossible to
understand what's used for what.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #2
Welcome to the complex world of CAS (Code access Security). You can key
the libraries so they can only be used by your applications. Use this
link in your Visual studio help to start diving into the topic
ms-help://MS.VSCC.2003/MS.MSDNQTR.2004APR.1033/cpguide/html/cpconCodeAccessSecurity.htm

This is an extreemly complicated subject with many options. We are in
the process of trying to get Microsoft to give us better documentation
on these issues ourself. .Net does have a lot of support but how and
where to use it are not well documented.

Hope this helps to get you started.
Leon Lambert

kjon wrote:
Hi, I've developed a couple of DLL assemblies component to be used with my
main exe application.

Since I need to distribute all the exe and dlls to the user PC, how can I
prevent the user, who might happen to have programming knowledge, from using
the dlls in their own application?

I know this may sound a bit paranoid, but I believe there must be some way
to prevent this. May be I should compile the dlls into the single exe or tie
the dlls to the main exe or something....??

Please advice. Thanks.

Jul 21 '05 #3
You need to give a StrongName to your main exe and in your DLL's ensure
that all callers have a StrongNameIdentityPermission of the main exe's
strong name.

http://msdn.microsoft.com/library/de...classtopic.asp

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

kjon wrote:
Hi, I've developed a couple of DLL assemblies component to be used with my
main exe application.

Since I need to distribute all the exe and dlls to the user PC, how can I
prevent the user, who might happen to have programming knowledge, from using
the dlls in their own application?

I know this may sound a bit paranoid, but I believe there must be some way
to prevent this. May be I should compile the dlls into the single exe or tie
the dlls to the main exe or something....??

Please advice. Thanks.

Jul 21 '05 #4

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

Similar topics

0
by: Ross Pellegrino | last post by:
Hi I know about Component Licensing. However, that Component Licensing is not well suited for my particular need. I understand about runtime and design time components but I want my components...
20
by: modemer | last post by:
Question is as in subject. For example: class BaseClass { public: void func() { do something; } // I don't want this function being overloaded in its inherited class };
3
by: Tony Maresca | last post by:
Hi. I have a class derived from a UserControl, that I want to allow others to derive controls from. I don't want them to design the base class (which is derived from a UserControl). I know that...
0
by: Frankie | last post by:
When I want to prevent a page from being cached, I have been using the following directive: <%@ OutputCache Location="none" %> I have also seen a few other methods recommended to prevent page...
1
by: Brian | last post by:
Hello - Is there a way to prevent the user from creating a blank row at the bottom of a datagrid? I want a read only grid that allows the user to view data but not select specific cells or...
9
by: Larry Woods | last post by:
I have a method in my base class that I want ALL derived classes to use. But, I find that I can create a "Shadow" method in my derived class that "overrides" the method in my base class. Can't...
4
by: kjon | last post by:
Hi, I've developed a couple of DLL assemblies component to be used with my main exe application. Since I need to distribute all the exe and dlls to the user PC, how can I prevent the user, who...
12
by: Larry Bud | last post by:
I rarely crosspost, but this affects both ASP and Javascript REALLY odd bug that I ran across in ASP 3.0. I have an input type of file, user clicks browse, then places his cursor in the...
2
by: APA | last post by:
Why does adding code to the form submit function using the RegisterOnSubmitStatement method prevent the server side event handler for the submit button from firing? This is completely useless. I...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.