Windows Vista Forums

Prevent DLL from being referenced
  1. #1


    Christiano Donke Guest

    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

  2. #2


    Jesse Houwing Guest

    Re: Prevent DLL from being referenced

    Hello Christiano,

    > 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

Prevent DLL from being referenced problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
The instruction at “0x73dd11c7” referenced memory at “0x00000004 Dan Cotton .NET General 1 25 Jan 2009
referenced memory at “0x00000004” Dan Cotton .NET General 0 13 Jan 2009
RunspaceInvoke does not load referenced assemblies? nholling PowerShell 1 06 Dec 2008
The referenced component could not be found (C#, VS2005-SP1) StefanM .NET General 1 05 Sep 2008
copying files referenced in an array...help? greatbarrier86 PowerShell 4 29 Feb 2008