How can I generate a serial number users can use to register an application?
I was thinking to the following scenario:
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.
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)