1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to make license keys?

Discussion in 'C++' started by Robert Miles, Dec 6, 2018.

  1. Robert Miles

    Robert Miles New Member

    Joined:
    Jan 15, 2013
    Messages:
    9
    Likes Received:
    3
    Trophy Points:
    3
    How do you create license keys? Do you use ready-made solutions or create your own generation methods?
     
  2. Robert Miles

    Robert Miles New Member

    Joined:
    Jan 15, 2013
    Messages:
    9
    Likes Received:
    3
    Trophy Points:
    3
    I would be grateful for any ideas.
     
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,324
    Likes Received:
    377
    Trophy Points:
    83
    Just use a simple encrypting function based on the user data to create license keys. Other option is to generate them at the server and then use and verify them in the client side.
     
    Janette likes this.
  4. Robert Miles

    Robert Miles New Member

    Joined:
    Jan 15, 2013
    Messages:
    9
    Likes Received:
    3
    Trophy Points:
    3
    Thank you, I think to do approximately as you say.
     
  5. Janette

    Janette New Member

    Joined:
    Dec 11, 2018
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Female
    You can create the key generation algorithm by yourself if you have enough knowledge and experience. Why not?
    Shabbir's idea is good. Many large companies use this method. But sometimes it's easy to get around. You need to create a server to check the status of the application. Some users can to replace whatever DLL you lock that functionality in to just always return something valid to server.
     
  6. Robert Miles

    Robert Miles New Member

    Joined:
    Jan 15, 2013
    Messages:
    9
    Likes Received:
    3
    Trophy Points:
    3
    I did not think about it. It seemed to me that online verification is a good reliable option.
     
    Janette likes this.
  7. Janette

    Janette New Member

    Joined:
    Dec 11, 2018
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Female
    This is true. But sometimes such protection is easy to crack.
     
  8. Robert Miles

    Robert Miles New Member

    Joined:
    Jan 15, 2013
    Messages:
    9
    Likes Received:
    3
    Trophy Points:
    3
    Yes. Despite this, many people continue to use this key verification method. I do not understand why?
     
  9. Janette

    Janette New Member

    Joined:
    Dec 11, 2018
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Female
    Sorry, did not see your question. I think this is a proven way. Therefore, many use it. But even a schoolboy can hack such protection for a certain time.
    I can advise you to use something like ArmDot and similar products. These are programs designed to protect the application and preserve its copyright.
    Also, there are many topics about generating license keys on stackoverflow! You can find a lot of useful things for yourself there)
     
  10. StarDrago

    StarDrago Member

    Joined:
    Nov 12, 2011
    Messages:
    51
    Likes Received:
    2
    Trophy Points:
    8
    I would prefer to use a turnkey solution. You will spend a lot of time creating, verifying keys.
    You can try to publish your software and draw conclusions. If the project will be successful, you can use one of the solutions written above.
     

Share This Page