Home All Groups Group Topic Archive Search About

Re: Protect dll from Use

Author
5 Jun 2009 10:42 PM
Ulrich Sprick
Hi,
use the OS (Windows) security settings for the dll: Remove all read/write
access rights for all users and groups, then grant read & execute permission
for a specific user. This can be done programmatically during installation.
Provided that users have no administrative privileges, there is no chance
for a user to even read-access the dll. On the othe hand, this means that
the (your) application must run under a specific (non-user) account.
Sorry if it sounds complicated, my english is somewhat limited...
HTH, Ulrich

Show quoteHide quote
"Essam-ag" <Essam***@discussions.microsoft.com> wrote in message
news:E62E9168-613E-4FC4-888D-D5A26DFB554F@microsoft.com...
> Hi
> I was search all this week about someway to protect dll files from use
> from unauthorized user, that when I create library in C#.net and put
> my methods in dll files I want just me to use this dll.
> but when distribute last executable program that use this dll, maybe
> someone take this dll and use it.
>
> I read about StrongNameIdentityPermissionAttribute in Microsoft CAS
> http://msdn.microsoft.com/en-us/library/system.security.permissions.s...
>
> but they said it not useful in .net framework 3.5 and protect way just
> used in old release
> then I read about Publisher Certifications and try it using test
> certificate but it look like it just use to make my application from
> known source not to protect dll from use..
>
> I appreciate any help in this field
> Thanks in advance
>
> Regards
> Essam