Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: (untagged)
<b>I would like to implement a key generator and print each key on a cd and then enter it on the software to activate it. What does a set of keys generated have in common to be validated, i mean XXXX-XXXX-XXXX is true and YYYY-YYYY-YYYY is true but how is tow different codes end up true. </b>

Edit:
What i want exactly is key generator to produce a set of keys that they are all valid to the software, my problem no in generating the keys but in how to make all these keys valid. can anybody give me a simple example how to do that ?
Posted
Updated 3-Oct-11 19:54pm
v2

1 solution

Using logic alone. To answer your first question. What the keys have in common to be validated is their both the same lengths & are the same type. To answer the last question... I don't quit understand what the last part mean, but if you are asking how you can makes two codes valid for the same software then that must mean that the software have more than one valid code. How you would do that is a whole different story, because one way you can do something like this in code, is to use a if or probably switch statement to check for the keys that are valid. Hope this gave you some insight my friend.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900