Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
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... :(


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



Thank you,
Posted

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.
 
Share this answer
 
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
 
Share this answer
 
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

VB
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[^]
 
Share this answer
 
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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900