Hello,

I've searched the net and several forums for a while, and I have not been able to find any references on algorithms to generate product "registration keycodes". There is an example in this site on how to make a dialog to enter a registration code, but it does not do anything about the code itself.

I'm helping my family with a software they want to distribute, and we want to have product codes on it for a little piracy protection (I know they are not foolproof at all, but at least is a little speedbump). Because we expect many people to use the program who know each other, we need to create a few thousand unique codes, which are random enough that people will not simply "add 1" and it will work (a centralized database in each location helps us to make sure two people don't use the same code - we are willing to take the risk of people copying the code in multiple locations), and have an algorithms that will identify them. We want to hand out programs with a keycode, rather than creating one depending on the registration name.

If anyone here knows of a good algorithm already, or can point me to a good book/website reference, please let me know.

Thank you!

Alvar