Click here to Skip to main content
15,885,704 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
VB
1)We have developed a library to use it with our software & we build it as DLL
2)We developed  a application using our library

Now what I need  that no other user can use my library in his application for example  when i give my application to end user that library is going to be added in setup, and if we dont protect it , any user can use it as reference in a .net project and can use my library and develop his own program , I need some thing that only my application will have access to my library and no other program can use it as reference and access its features
Posted

1 solution

I recently read claims of one of the companies providing a solution for reverse engineering. They claim that they can reverse-engineer any .NET product with ease, even if it it protected by most expensive and reputed and powerful protection systems, especially if this protection software is well-known. You know, I tent to trust those claims. They really can do it.

As to the use of the DLL, if your application assemblies can use it, any other developer can do it. All you can do is some obfuscation. Obfuscation can make understanding of your class library much more difficult, and the use extremely annoying.

I would not bother at all. Regular users will not use it anyway, and those who may badly need your library (do you think they really will want it?) will always find a way.

—SA
 
Share this answer
 
Comments
seema jadhav 12-Mar-13 3:21am    
yes,but how can implement the security.
seema jadhav 12-Mar-13 3:35am    
but how i can protect my dll from end users.
Sergey Alexandrovich Kryukov 12-Mar-13 11:11am    
I already answered, didn't I? This is what it is.

As a side note: I would advise to care about the users, not protect yourself from them. What tells you that someone will steal your code?
What tells you that using your library (library, not DLL, "DLL" is nothing but a file name) will harm your business? Start from there.

By the way, do you understand that there is no essential difference between EXE and DLL? Even if you merge all code in one EXE (which is quite possible to do after the regular build), your EXE can be referenced by user's application in exact same way as a regular library. There are assemblies and modules, that's all that matters, not "EXE" or "DLL", which are just parts of customary file names...

—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900