Results 1 to 5 of 5

Thread: How to protect .dll?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    782

    How to protect .dll?

    Hi,

    I'm developing a class lib (C#, Netcore 3.1) that especially I develop for a project, is there any way to protect my .dll so the other would not able to see the methods and properties inside the lib? and the lib must only be used for that project.

    need advice.

    thanks

  2. #2
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,597

    Re: How to protect .dll?

    Yes there is. You can use a program to obfuscate the dll.
    Google: .net obfuscator
    Having said that I'm not sure how well a free obfuscator works.
    Also, especially because you are using asp.net, why bother? The dll would be on the server and only server users have access on that. So possibly an admin and you?
    And on top of that, I think that you have been here long to see high rep members NOT using any protection method. It's tricky and, honestly if you are not pioneering on the code, probably hackers won't bother opening your dll.
    We are in part of a huge UK based company and any software they send us, I can open the dll. So it makes you wonder why they don't lock em, non?
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  3. #3
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,531

    Re: How to protect .dll?

    Also, I think the obfuscater only obfuscates internal code... but not the public methods or properties. Those would remain as they are and public to the DLL.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4
    Banned
    Join Date
    May 2020
    Location
    https://t.me/pump_upp
    Posts
    42

    Re: How to protect .dll?

    You use Delphi to write DLL API or DLL COM is better security than C#

  5. #5
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,872

    Re: How to protect .dll?

    I think it's not about decompiling, but not allowing others to see the properties and methods and thus use the DLL from other products.

    You can always add a handshake property/method to the DLL.
    If the handshake is correct then proceed when the properties/methods are called.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width