Results 1 to 10 of 10

Thread: [RESOLVED] Store the license key

  1. #1

    Thread Starter
    Hyperactive Member anna7's Avatar
    Join Date
    Sep 2005
    Location
    Catalonia
    Posts
    481

    Resolved [RESOLVED] Store the license key

    Hi,

    where is the best location to store the license key? Now I store it into registry, but I have seen that is very easy to found and change it.

    regards

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Store the license key

    What exactly does the license key do and what are the license restrictions (i.e. 1 license per person, per computer, per cpu, etc?)?

    Also, if you're storing it on the client but you want to prevent someone from accessing it... well, that's impossible. The only way to make it not accessable to the user is if it's stored remotely which presents its own challenges.

    Tell us what you want to accomplish.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Store the license key

    Are you at least encrypting the key if you are storing it locally?

  4. #4

    Thread Starter
    Hyperactive Member anna7's Avatar
    Join Date
    Sep 2005
    Location
    Catalonia
    Posts
    481

    Re: Store the license key

    Hi,

    I want to use QLM (Quick License Manager) to create and manage licenses keys. But I need to store/retrieve the license key that I will create with QLM but I don't know which is the best location.

    My app will has two types of licenses: permanent and limited by time. Normally, first the user download the demo version (limited by time). When the user buys the app, I will send to him the permanent license key. Only he must enter the permanent license key.

    1 license for Computer.
    Are you at least encrypting the key if you are storing it locally?
    Yes, I want to encrypt these data. (I encrypt using SHA256Managed Class)

    regards

    Edit:

    And I'm thinking that I must bound the license with CPU id (for example) because otherwise the user can copy folder's to nº unlimited of computers. But is it very troublesome for the end user?
    Last edited by anna7; Feb 12th, 2008 at 10:08 AM.

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Store the license key

    Quote Originally Posted by anna7
    And I'm thinking that I must bound the license with CPU id (for example) because otherwise the user can copy folder's to nº unlimited of computers. But is it very troublesome for the end user?
    Any type of restriction is troublesome for the end user.

    However, if you are using a local machine based license key then even if they copy the entire application over to another machine it won't (or, at least shouldn't) run because that machine won't have the key installed.

  6. #6

    Thread Starter
    Hyperactive Member anna7's Avatar
    Join Date
    Sep 2005
    Location
    Catalonia
    Posts
    481

    Re: Store the license key

    Hi hack,

    but I must say to the end-user that his license key is bounded with his computer?

    regards

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Store the license key

    Well, if you are storing the key in the registry, doesn't it make it that way?

  8. #8

    Thread Starter
    Hyperactive Member anna7's Avatar
    Join Date
    Sep 2005
    Location
    Catalonia
    Posts
    481

    Re: Store the license key

    Finally I don't store the key in the registry because is not confidential. I send the key to the user and he must read it. I store the key in the license file.

    If the user deletes or modifies the file of the license, the program will not leave him to continue using the program.

    I generate license keys based on CPU ID. Every computer will have a different key and it cannot be used in another PC.

    Regards

  9. #9
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: Store the license key

    Cool, that works. I've also had to write software with a hardware ID lock. Start the software after install, it creates a code based on a couple key hardware IDs (motherboard, on-board MAC address and CPU) then instructs you to call our sales with the challenge code. A generator program over here then creates the response code. They type it in, it saves it to a Config.XML file, all is well.

    It works well, especially since most of the systems this software is installed on are never networked since they're industrial machines on the shop floor, we have a very limited, specialized customer base, and very special computer hardware is required for the software to operate so 19 times out of 20 we're buying a new machine from Dell and National Instruments and pre-installing everything here.

  10. #10
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Store the license key

    Quote Originally Posted by anna7
    Finally I don't store the key in the registry because is not confidential. I send the key to the user and he must read it. I store the key in the license file.

    If the user deletes or modifies the file of the license, the program will not leave him to continue using the program.

    I generate license keys based on CPU ID. Every computer will have a different key and it cannot be used in another PC.

    Regards
    Well, then it seems as though you have answered you own question, right?

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