Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Simply put, I want a way to secure my c# project so to require some kind of serial-key/cd-key to any user trying to use it - keep it mind I am an absolute beginner in this field of software development (coding, encoding, encrypting, etc...)

So, I came up with the following scheme:

 

On launch of the application (when the user double-clicks):

- Check Registry for a value->key X, if found continue and load the application

- If X not found prompt for SERIAL-KEY/CD-KEY

- If valid, add registry value->key X and continue to load the application

- Else abort with error message telling user he needs a valid key

 

So, right off the bat I wanted to know if anyone see anything wrong with type of security, I know it is extremely basic but I have to start somewhere, of course I am always open to hear suggestions of any kind...

 

But my actual QUEStION is regarding the SERIAL-KEY/CD-KEY itself, specifically how does one go about generating a "valid serial-key/cd-key"?

I mean, I think I recall reading that VS has a sort of encrypter/decrypter class of somekind but I was unable to find anything and even if I did I doubt it would make any sense initially.

 

So, I come asking for advice, what route to take, what are the common options, maybe some basic samples/ideas... anything will do, want to start off on the right foot.

Thanks,

  • *Experts*
Posted

You can definitely go custom and the method you describe may work well for you. I did a google search as I'd heard about "license" features built into .NET but never used them. I googled for:

site:microsoft.com license control

 

It turned up this link:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconlicensingcomponentscontrols.asp

 

That should be a starting point, if nothing else.

 

-ner

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...