Results 1 to 9 of 9

Thread: protect dll with license key

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Posts
    208

    Smile protect dll with license key

    Hi,

    how can i protect my dll with a license key, i already have my licensing scheme but i dont know where to put it.

    thanks,

    Alexis

  2. #2
    Addicted Member tsungik's Avatar
    Join Date
    Aug 2004
    Location
    Philippines
    Posts
    194

    Re: protect dll with license key

    This is what I do if i'll implement this.
    Create a private function to validate the license key.

    From the public functions of your DLL, call the private function to check if the user has a valid license key. Of course, provide the user a property where they can input the license key or any mechanism to enter the key.

    Just my one cent.
    Last edited by tsungik; Nov 25th, 2009 at 04:01 AM. Reason: Typo error
    Begin with the end in mind.

    My Profile

    while( !( succeed = try() ) );

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Posts
    208

    Re: protect dll with license key

    Hi,

    where can i place the property for the license key, do you any sample code? please. thanks, i already have my licensing scheme, but i just don't know where to place the validation of the license key in my assemblies.

    Thanks,

  4. #4

    Re: protect dll with license key

    He just told you where to place it. You place the validating sub/function inside the dll file, call it from the main application, and see if it is valid or not. If the key fails to pass through the dll, error out the program.

  5. #5
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: protect dll with license key

    when you say you have a "licensing scheme" is this some customer scheme you made, or some other protection from something like a 3rd party?

  6. #6
    Frenzied Member Pc_Not_Mac's Avatar
    Join Date
    Oct 2009
    Location
    localhost
    Posts
    1,206

    Re: protect dll with license key

    What i do is just put all the keys to a server.
    If you think about it is a safe way to protect keys and also you can blacklist keys if the user starts sharing the key.
    My Codebank:
    Windows Vista & 7 Glass Effect & Limit the amount of times your application could be opened.
    Pause Your Code & Check the OS name

    The question of whether computers can think is like the question of whether submarines can swim.

    Currently learning: Java

    Coding can be a learning experience or

  7. #7
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: protect dll with license key

    That would require an always available internet connection to validate the keys. While sometimes you can require that of your customers, many times you can not.

  8. #8
    Frenzied Member Pc_Not_Mac's Avatar
    Join Date
    Oct 2009
    Location
    localhost
    Posts
    1,206

    Re: protect dll with license key

    This is just my way of doing it.
    When you install windows they also require internet connection or by phone.
    As i said before this is my way. I'm sure that you can do this with other methods like encryption.
    My Codebank:
    Windows Vista & 7 Glass Effect & Limit the amount of times your application could be opened.
    Pause Your Code & Check the OS name

    The question of whether computers can think is like the question of whether submarines can swim.

    Currently learning: Java

    Coding can be a learning experience or

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Posts
    208

    Re: protect dll with license key

    Quote Originally Posted by formlesstree4 View Post
    He just told you where to place it. You place the validating sub/function inside the dll file, call it from the main application, and see if it is valid or not. If the key fails to pass through the dll, error out the program.
    Hi,

    is so sorry, if it was too complicated for me, just newbie in vs2008. just want to clear it out if i can place it in the assemblyinfo.vb or somewhere so when the assembly was loaded, it will automatically check the license, from a text file maybe.

    Thanks,

    alexis

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