473,508 Members | 2,143 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Protect my class Libraries, can I?

Is there a way to protect my class libraries?

I have for instance, a class library full of my base forms and classes
latter inherited by various projects.

A lot of logic is within those objects and IŽd hate to see other companies
or individuals being able to add my DLLs to their .NET solution and using it
at will.

Jul 21 '05 #1
4 1290
> Is there a way to protect my class libraries?

I have for instance, a class library full of my base forms and classes
latter inherited by various projects.

A lot of logic is within those objects and IŽd hate to see other companies
or individuals being able to add my DLLs to their .NET solution and using it at will.


See the reply on "Protecting Assemblies From Un-Authorised Use" there I have
given an example use. :-)
Jul 21 '05 #2
You could use
"System.Security.Permissions.StrongNameIdentityPer missionAttribute"
You will need to sign all your assemblies that call the ones you want to
protect with the appropriate key.
Any "foreign" assemblies that try to call your protected ones should get a
security exception.

You can use the attribute at assembly, class, constructor or method level.

It's not impossible to circumvent but better than nothing.
Jul 21 '05 #3
Write good license agreements, slap a bunch of copyrights on it, and be
prepared to hire a lawyer. There is no way to truly protect source code.

--
Jonathan Allen
"Cablito" <ca*****@dontspam.com> wrote in message
news:ef*************@TK2MSFTNGP09.phx.gbl...
Is there a way to protect my class libraries?

I have for instance, a class library full of my base forms and classes
latter inherited by various projects.

A lot of logic is within those objects and IŽd hate to see other companies
or individuals being able to add my DLLs to their .NET solution and using it at will.

Jul 21 '05 #4
Hi Cablito,

Have a look at "Licensing Components and Controls" in MSDN:
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconlicensingcomponentscontrols.asp

HTH,
- Rakesh Rajan

"Cablito" <ca*****@dontspam.com> wrote in message
news:ef*************@TK2MSFTNGP09.phx.gbl...
Is there a way to protect my class libraries?

I have for instance, a class library full of my base forms and classes
latter inherited by various projects.

A lot of logic is within those objects and IŽd hate to see other companies
or individuals being able to add my DLLs to their .NET solution and using it at will.

Jul 21 '05 #5

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

Similar topics

6
384
by: YK | last post by:
All, What is the best way to protect IL code? --------------------------------------------------- Typical scenario: Visual Studio .NET 2003 includes Dotfuscator Community Edition, which...
6
2507
by: YK | last post by:
All, What is the best way to protect IL code? --------------------------------------------------- Typical scenario: Visual Studio .NET 2003 includes Dotfuscator Community Edition, which...
4
311
by: Cablito | last post by:
Is there a way to protect my class libraries? I have for instance, a class library full of my base forms and classes latter inherited by various projects. A lot of logic is within those...
17
19630
by: seberino | last post by:
How can a proprietary software developer protect their Python code? People often ask me about obfuscating Python bytecode. They don't want people to easily decompile their proprietary Python app....
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5629
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5053
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3195
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1558
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.