Click here to Skip to main content
11,721,289 members (82,677 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: key
<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
Edited 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
0 Sergey Alexandrovich Kryukov 515
1 OriginalGriff 279
2 Mika Wendelius 170
3 F-ES Sitecore 150
4 cyycoish 70
0 Sergey Alexandrovich Kryukov 2,209
1 OriginalGriff 969
2 F-ES Sitecore 660
3 Maciej Los 609
4 Richard MacCutchan 560

Advertise | Privacy | Mobile
Web01 | 2.8.150901.1 | Last Updated 4 Oct 2011
Copyright © CodeProject, 1999-2015
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