How to create a serial number (registration number)?

How can I create a serial number that users can use to register an application?

I thought of the following scenario:

  • Users have tried the app.
  • When they want to buy an application, they select a menu item.
  • The application generates code, which is then transferred to the website to purchase the application.
  • Users enter the code returned from the website.
  • The application checks the entered code with the code that it generated.

If users have lost the serial number or copied the application after reinstalling the OS, they will need a code on the website that will return a special code that allows the application to receive the source code generated for the users machine.

+5
source share
2 answers

There are several open source projects that eliminate the need to even think about it. You can focus on writing what your user will actually gain. There is an opensource infrastructure called Aquatic Prime for generating serial numbers . There are many web portals that work with Aquatic Prime, such as Shine .

I don’t like writing something “new” when there is a great solution (especially because these projects are free)

+2
source

You can use asymmetric encryption and hashing to do the following:

  • You associate your public key with the application.
  • , .
  • - , Base64, .
  • "" , , ( /- ), , .
+9

All Articles