Pergunta

We have a software database product that is delivered to a customer. The fees charged are based on a number of factors such as

  1. number of users that can be created
  2. number of database transactions etc

We wanted to give a license key whenever the user pays for some time duration. So the license key should contain such information about the duration of product, number of users/transactions allowed etc..

What is a cryptographically secure way of license key generation (that contains the whole information and can be read securely by our system at their end) to prevent user from any illegal usage.

I know about RSA as a method but how do I go about it? and are there any tools available that i should checkout?

Foi útil?

Solução

You can generate license files Public-Private key Cryptography, and using RSA. Please look at this library, you can found this useful. http://afewguyscoding.com/page/2/ This library people have also done survey, which will give you idea that how good this method works.

There is another github project using similar approach. Visit https://github.com/starschema/slm4j

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top