DLL protection

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2008
Posts: 18
Reputation: dmkp is an unknown quantity at this point 
Solved Threads: 0
dmkp dmkp is offline Offline
Newbie Poster

DLL protection

 
0
  #1
Mar 21st, 2008
Hi I have a quick question, I tried asking on the MSDN forums and they were no help.

I am wondering how I may protect my DLL files from being used by other people. By "used" I mean, referenced/imported or whatever into projects and the functions and variables inside used.
I only wish it to be used by my applications... is there a way to protect it?


Thankyou for any help you may give me.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 23
Reputation: $dunk$ is an unknown quantity at this point 
Solved Threads: 5
$dunk$ $dunk$ is offline Offline
Newbie Poster

Re: DLL protection

 
0
  #2
Mar 21st, 2008
Unfortunately, it is a needlessly large complicated topic, which I think most people avoid unless they really need it. Thus, the reason for your lack of help in other forums. But I think if you do research on Code Access Security and C# you may be able to do what you want.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 18
Reputation: dmkp is an unknown quantity at this point 
Solved Threads: 0
dmkp dmkp is offline Offline
Newbie Poster

Re: DLL protection

 
0
  #3
Mar 21st, 2008
Just seems so absurd this kind of thing isn't already built-in.. I mean.. dlls are supposed to be useful to the programmer so he can share things between his applications but not everyone else... :/ it annoys me the .net language is so open too... you can decompile the apps so easily it's not worth the effort inventing new functions just to have them stolen.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 1
Reputation: phallguy is an unknown quantity at this point 
Solved Threads: 0
phallguy phallguy is offline Offline
Newbie Poster

Re: DLL protection

 
0
  #4
Mar 24th, 2008
There's actually an easy method in the CLR to limit the use of your assemblies to only your projects. Take a look at the PublisherIdentityAttribute in the docs. This will limit the use of your assemblies to assemblies signed by your private key - effectively limiting the use to those you authorize.

Of course with all the other security weaknesses in .NET this can be circumvented without proper proptection of your assembly. You'll want to take a look at an obfuscation/encryption tool to make sure the strong names can't be modified. CodeVeil - by XHEO where I work - will do just that.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 18
Reputation: dmkp is an unknown quantity at this point 
Solved Threads: 0
dmkp dmkp is offline Offline
Newbie Poster

Re: DLL protection

 
0
  #5
Mar 25th, 2008
How do I sign it with a key?
I implemented a simple byte array keycode with xor functions... it's not perfect and could be found if you look inside.

Is codeveil free?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC