Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Prevent DLL from being referenced

Reply
 
Old 05-12-2009   #1 (permalink)
Christiano Donke


 
 

Prevent DLL from being referenced

How can I prevent a third-party user from referencing the object that i1ve
created?

Strong name will prevent from diasemblying only, right??

i want to avoid the user from using it... I have my password (de)scrambling
tools inside a DLL, and don't want to let my clients to have access to it...

tks...



My System SpecsSystem Spec
Old 05-12-2009   #2 (permalink)
Jesse Houwing


 
 

Re: Prevent DLL from being referenced

Hello Christiano,
Quote:

> How can I prevent a third-party user from referencing the object that
> i1ve created?
>
> Strong name will prevent from diasemblying only, right??
>
> i want to avoid the user from using it... I have my password
> (de)scrambling tools inside a DLL, and don't want to let my clients to
> have access to it...
Mark your assembly with a GacIdentityPermission and/or StringNameIdentityPermission
and/or a PublisherIdentityPermission.

These allow you to force other assemblies to be signed with the same Strong
Name or a Code Signing Certificate. All other calls will fail.

Though this will prevent other from normally calling your assembly, it does
not prevent disassembly. One could disassemble the assembly using a tool
like .NET Reflector (although it would not be possible to recreate the original
assembly) and one would be able to read the algorithm you've employed. So
it wouldn't be too hard to 'recreate' a similar method in a new assembly.

To protect against disassembly, you'll need to obfuscate your private assembly.
Tools like XenoCode PostBuild and WiseOwl Demeanor for .NET will allow you
to do this.

--
Jesse Houwing
jesse.houwing at sogeti.nl


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
The instruction at “0x73dd11c7” referenced memory at “0x00000004 .NET General
referenced memory at “0x00000004” .NET General
RunspaceInvoke does not load referenced assemblies? PowerShell
The referenced component could not be found (C#, VS2005-SP1) .NET General
copying files referenced in an array...help? PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46