Results 1 to 3 of 3

Thread: Obfuscate a dll

  1. #1

    Thread Starter
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    Obfuscate a dll

    Mods, I don't think this is the correct forum for this, so please move it as you see fit.

    Hi all,

    I am currently in talks to license a bunch of our source code to one of our customers. Since there would be monthly fees involved, I need to make sure that if we stop getting paid they can no longer use the code.

    My idea is to take out an import part of the code (that they won't need to modify) and put it in a separate class library along with the code we use for our licensing, obfuscate the library and give it to them. 95% of what they will be doing would revolve around the methods in this library and with the licensing code in it, I can always turn them off on our licensing server.

    What I am unclear of is how to obfuscate the library yet still provide entry points for the public methods.

    I have used the System.Reflection. <Obfuscation(Exclude:=True)> on a couple of Shared methods, but when I create a new project that references the obfuscated DLL, I don't see the methods - of course I may not be doing something quite right yet also.

    Does anyone have any ideas about how to go about what I am trying to do?
    Thanks
    Kevin
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    ______________________________
    Last edited by kebo : Now. Reason: superfluous typo's

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Obfuscate a dll

    Might be considered deployment, but I think the real issue here isn't the deployment but whether or not obfuscation will do what you want it to do. Therefore, I'm inclined to leave the thread where it is for now.

    Personally, I don't trust obfuscation as a means of security. It seems too simple to reverse, but I've been fortunate to never need it for anything, so my knowledge is not very great.
    My usual boring signature: Nothing

  3. #3

    Thread Starter
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    Re: Obfuscate a dll

    Software security is like an onion; the more layers it has the fewer people that will be willing or able to get to the center. I don't think obfuscation is the be all end all to software security, but it does add a layer of protection.
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    ______________________________
    Last edited by kebo : Now. Reason: superfluous typo's

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