Search code examples
objective-cosx-snow-leopard

How do I generate a serial number (registration number)?


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

I was thinking to the following scenario:

  • Users try the application.
  • When they want to buy the application, they select a menu item.
  • The application generates a code that is then passed to the web site to buy the application.
  • Users enter the code returned from the web site.
  • The application checks the entered code with the code it generated.

If users lost the serial number, or copied the application after re-installing the OS, they would require the code to the website, which would return a special code that allow the application to get the original code generated for the users' machine.


Solution

  • There are several open source projects out there that eliminate the need to even think about this. You can focus on writing what your user will actually purchase. There is an opensource framework called Aquatic Prime for generating serial numbers. There are many web portals that work with Aquatic Prime like Shine.

    I dont like writing something "new" when there is a perfectly good solution out there (especially since these projects are free)