Click here to Skip to main content
Rate this: bad
good
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>
 
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 3-Oct-11 18:18pm
Edited 3-Oct-11 20:54pm
v2

1 solution

Rate this: bad
good
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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 319
1 Kornfeld Eliyahu Peter 265
2 Maciej Los 249
3 BillWoodruff 205
4 Sergey Alexandrovich Kryukov 175
0 OriginalGriff 5,107
1 DamithSL 4,157
2 Maciej Los 3,595
3 Kornfeld Eliyahu Peter 3,450
4 Sergey Alexandrovich Kryukov 2,741


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 4 Oct 2011
Copyright © CodeProject, 1999-2014
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