Thread: How to generate, check license keys?

  1. #1
    Registered User
    Join Date
    Oct 2018
    Posts
    16

    How to generate, check license keys?

    Do you create the key generator yourself or use ready-made libraries?
    I read a great topic on stackoverflow.com. Here is a detailed description how to validate keys. But it looks laborious, if I understood correctly.

    I would be grateful for advice, articles, any help.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    36,751
    Maybe you could post the actual URL.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Oct 2018
    Posts
    16
    I saw information here mostly:

    c# - How to generate and validate a software license key? - Stack Overflow
    There are good ideas here, but I would like to automate the process as much as possible.
    I use C ++
    Last edited by MasterYoda; 2 Weeks Ago at 04:26 AM.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    36,751
    So what's the actual question?

    Techniques are just ideas that can be transposed from one implementation language (c#) to another (c++).

    But as per your other thread on obfuscation, how much effort are you willing to spend on what amounts to a futile effort?

    If someone wants in badly enough, they will find a way.

    As one SO commenter said, don't create something so elaborate that it drives users away.

    I'll add another one, don't waste masses of effort on the indefensible when you could be doing something better like improving the product and attracting more real customers.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Oct 2006
    Posts
    3,444
    I'd imagine a good way that license keys might work would be to generate a cryptographic signature, using a private RSA key, then use the corresponding public key in the application to verify that signature.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  6. #6
    Registered User
    Join Date
    Oct 2018
    Posts
    16
    Salem,
    You are right, the product must be of high quality. The program should be very good, so that users loved it. And I'm working on it and will work.
    At the moment I am thinking about monetizing the program. Therefore, I had such a question.
    Elkvis, This is an interesting option!

  7. #7
    Registered User
    Join Date
    Oct 2018
    Posts
    7
    I found another topic on Stack. And here there are some not bad solutions to your question:

    licensing - Looking for a license key algorithm - Stack Overflow

    I like the option with adding hash code. It's pretty simple, you can search for ready-made solutions on GitHub.

    If you don’t want to do this yoursels, you can use raedy-made generator. For example, such programs like ArmDot or Net Reactor can do everything for you. Then your task will be simple - create a program that can pay for itself. It should be very attractive to the user.

    And if you manage to create good software, there will be someone who wants to hack it))))Get ready for this!

  8. #8
    Registered User
    Join Date
    Oct 2018
    Posts
    16
    I understood you. I have already seen a similar method. It is not bad, but it takes time. I'll think about how to automate this. Thanks for the tips
    P.S. I will improve my program.
    Regards

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. RSA generate keys without password
    By surgeon in forum C++ Programming
    Replies: 2
    Last Post: 09-07-2017, 01:42 PM
  2. Generate unique hashtable keys
    By Aslaville in forum C Programming
    Replies: 2
    Last Post: 09-19-2015, 08:52 PM
  3. Replies: 7
    Last Post: 05-18-2011, 10:06 AM
  4. How I Check For Arrow Keys?
    By Bordonel in forum C Programming
    Replies: 4
    Last Post: 06-15-2002, 05:16 PM
  5. How To Check Arrow Keys?
    By Bordonel in forum Game Programming
    Replies: 3
    Last Post: 06-15-2002, 09:52 AM

Tags for this Thread