Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting text from an edit box Pin
aaadetos13-Dec-04 20:27
aaadetos13-Dec-04 20:27 
GeneralRe: Getting text from an edit box Pin
*Dreamz14-Dec-04 19:05
*Dreamz14-Dec-04 19:05 
GeneralRe: Getting text from an edit box Pin
aaadetos15-Dec-04 10:23
aaadetos15-Dec-04 10:23 
GeneralRe: Getting text from an edit box Pin
*Dreamz15-Dec-04 17:07
*Dreamz15-Dec-04 17:07 
GeneralRe: Getting text from an edit box Pin
Antony M Kancidrowski14-Dec-04 6:51
Antony M Kancidrowski14-Dec-04 6:51 
GeneralRe: Getting text from an edit box Pin
toxcct14-Dec-04 4:48
toxcct14-Dec-04 4:48 
QuestionHow to generate human friendly product keys using asymmetric crypto? Pin
Jim Howard13-Dec-04 6:06
Jim Howard13-Dec-04 6:06 
AnswerRe: How to generate human friendly product keys using asymmetric crypto? Pin
Chris Losinger13-Dec-04 7:49
professionalChris Losinger13-Dec-04 7:49 
this might work:

assuming you're using RSA (or something similar):

1. come up with a public/private key pair.

2. put one of your keys in your app, and one in your license creator.

3. generate a series of short plaintext strings like this: "SomeText_######" , where ###### is an incrementing counter, or a time stamp, or some other unique value (just to ensure that no two codes are the same). the actual content doesn't matter to the algorithm, only that the form of the string can be verified when decoded.

4. encrypt each of those strings with your license creator key. then output them as hex strings: a0b4-d3ee-091c-etc. the code length will depend on how big the input data was.

5. distribute those keys to your users.

6. when your app gets a license code, decrypt it using the key from #2.

7. if the decrypted code matches the form from #3, it's a valid license code.

take a look at crypto++[^].


Software | Cleek

GeneralRe: How to generate human friendly product keys using asymmetric crypto? Pin
Jim Howard13-Dec-04 7:59
Jim Howard13-Dec-04 7:59 
GeneralRe: How to generate human friendly product keys using asymmetric crypto? Pin
Chris Losinger13-Dec-04 8:30
professionalChris Losinger13-Dec-04 8:30 
Generalend of sizing or moving windows Dialog Pin
Thierry Lebrun13-Dec-04 5:26
Thierry Lebrun13-Dec-04 5:26 
GeneralRe: end of sizing or moving windows Dialog Pin
Phil J Pearson13-Dec-04 5:48
Phil J Pearson13-Dec-04 5:48 
GeneralRe: end of sizing or moving windows Dialog Pin
toxcct13-Dec-04 7:48
toxcct13-Dec-04 7:48 
GeneralRe: end of sizing or moving windows Dialog Pin
Blake Miller14-Dec-04 4:37
Blake Miller14-Dec-04 4:37 
GeneralRe: end of sizing or moving windows Dialog Pin
Thierry Lebrun14-Dec-04 8:29
Thierry Lebrun14-Dec-04 8:29 
GeneralSome help please Pin
Tom Wright13-Dec-04 5:12
Tom Wright13-Dec-04 5:12 
GeneralRe: Some help please Pin
Phil J Pearson13-Dec-04 5:46
Phil J Pearson13-Dec-04 5:46 
GeneralRe: Some help please Pin
Tom Wright13-Dec-04 6:02
Tom Wright13-Dec-04 6:02 
GeneralRe: Some help please Pin
Maximilien13-Dec-04 6:09
Maximilien13-Dec-04 6:09 
GeneralRe: Some help please Pin
Tom Wright13-Dec-04 6:12
Tom Wright13-Dec-04 6:12 
GeneralRe: Some help please Pin
PJ Arends13-Dec-04 7:00
professionalPJ Arends13-Dec-04 7:00 
GeneralRe: Some help please Pin
Tom Wright13-Dec-04 9:36
Tom Wright13-Dec-04 9:36 
GeneralRe: Some help please Pin
toxcct13-Dec-04 7:50
toxcct13-Dec-04 7:50 
GeneralCSpinButtonCtrl object Pin
poornimac8013-Dec-04 5:05
poornimac8013-Dec-04 5:05 
Generalhelp on timeSetEvent for periodic timer Pin
bkhn4113-Dec-04 4:46
bkhn4113-Dec-04 4:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.