Click here to Skip to main content
13,044,371 members (124,747 online)
Rate this:
Please Sign up or sign in to 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>

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 3-Oct-11 17:18pm
Updated 3-Oct-11 19:54pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 4 Oct 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100