Protection of DLLs

This is a discussion on Protection of DLLs within the C# Programming forums, part of the General Programming Boards category; Hello, everybody! App uses some third-party DLLs, which should be protected from any outside access. However, the app should have ...

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    13

    Protection of DLLs

    Hello, everybody!

    App uses some third-party DLLs, which should be protected from any outside access. However, the app should have full access to this DLLs. Are there a ways to do this without writing DLLs on hard disc(including extracting DLLs to TEMP directory during runtime)?

    Thanks!

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Huh?

    If you are using a DLL as a part of the application, the OS needs to know where to find it, so it need to exist somewhere in the file-system. If you do not like that, I suggest you ask the third party people for a static version of the library, so that you do not HAVE a .dll at all.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User valaris's Avatar
    Join Date
    Jun 2008
    Location
    RING 0
    Posts
    507
    Maybe you want to use remote assemblies? Also look into assembly signing. Also I may be wrong, but I'm pretty sure you can't "statically" link a library in C#, to do that you would need the actual source code to build into your assembly.

  4. #4
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,239
    Quote Originally Posted by Poche View Post
    Hello, everybody!

    App uses some third-party DLLs, which should be protected from any outside access. However, the app should have full access to this DLLs. Are there a ways to do this without writing DLLs on hard disc(including extracting DLLs to TEMP directory during runtime)?

    Thanks!
    If the third party license requires you to do this, then they should have provided a mechanism for it.

    If the license doesn't require it, why are you wasting your time on it?
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  5. #5
    Registered User
    Join Date
    May 2009
    Posts
    13
    There is no license requires, but it still strongly recommended.
    Looks like there is no opportunity to make static link of the library in C#.
    valaris: remote assemblies-does it means the app should always have access to the Internet?

  6. #6
    Registered User
    Join Date
    May 2009
    Posts
    13
    Looks like BoxedApp Packer can help much. It squeezes all ActiveX controls, dynamic libraries, and just all kinds of files that original application depends on into a single executable file and run it just as if that was a regular application installed the regular way... BoxedApp Packer creates processes directly from memory, so as soon DLLs doesn't exists on HDD they are protected from other outside access. I think it’s exactly what is needed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Some doubts on DLLs
    By BrownB in forum Windows Programming
    Replies: 1
    Last Post: 05-30-2007, 02:25 AM
  2. standart dlls
    By keeper in forum C++ Programming
    Replies: 3
    Last Post: 07-05-2006, 07:32 PM
  3. Can't load string from resource DLL's string table
    By s_k in forum Windows Programming
    Replies: 4
    Last Post: 07-15-2003, 06:43 AM
  4. question about DLL's and class functions
    By btq in forum Windows Programming
    Replies: 2
    Last Post: 02-25-2003, 05:08 AM
  5. DLLs <- sound files, and nesting.
    By sean in forum C++ Programming
    Replies: 2
    Last Post: 10-28-2002, 04:13 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21