Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ C# VB
Thank you for your quick replies...
 
Let say I have the software to create product key, license key and Activation key. What I would like to know is what to do in my application so it can recognize a product key? Should I hardcode a copy of all possible product keys or activation keys within my application? Where in my application I should store that information? may be in registry keys... Frown | :(
 

I am totally lost in this final stage of my project. I feel like jumping from an airplane without parachutes..
 

 
Thank you,
Posted 25-Mar-10 8:06am
Tommy4U816
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

There should be some logic to your key. If it's totally just random numbers, then you'd just have to hard code all of the possibilities. But your key should be formatted so that when you decrypt it, you can make sure that it contains the necessary information, like a product name, version type, expiration dates, their level of access privileges.
 
Then, you decrypt the key and make sure that it matches that format.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

you should creat two project , key generator and key validator , the generator will generate key according to mathmatical alogorithem you making , and the validator will reverse engineer the giving key and if the key match the algorithem given you should accept ,
validator code should embedded in the application and installer while generator would be with developer
asma hashaykeh
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Serial Key Generation
Inputs for Serial Key Generation
a. HDD Serial Key
b. Physical MAC Address
c. Number of Users
d. Version Number
e. Month
f. Year
 
PlainText = modHardware.GetHDSerialFirmware & "_" _
  & modHardware.GetMACAddress & "_" _
  & txtNumofPC.Text & "_" _
  & txtversion.Text & "_" _
  & DateTime.Month(DateTime.Date) & "_" _
  & DateTime.Year(DateTime.Date)
 
use following link for encryption.
http://www.di-mgt.com.au/cryptoBlowfishDemo.html[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

You should use some mathematical way to validate the license codes to verify that the codes are correct. For example, one very simple way would be to use 20 digit key, with the last 10 digits being in reverse order of the first 10 digits.
 
But you probably want to use something more strong like cryptographic algorithms such as RSA. You can consider using 3rd part license management like CryptoLicensing.
  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 216
1 CPallini 195
2 BillWoodruff 180
3 Maciej Los 165
4 Kornfeld Eliyahu Peter 140


Advertise | Privacy | Mobile
Web01 | 2.8.141015.1 | Last Updated 11 Nov 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