473,385 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Licnese key creator

190 100+
HI,

For my application i want to create a license key, i have two method

(1) Using any id in client machine (like get hard disk id) php generate licence key

in brief client send they hard disk id , using this i will generate a unlock key for my product and send back to this client. By submitting this id,my application check the unlock key which i sent and system generate (both me and my application use same logic) right it wrong

(2) I have generate set of some unlock keys and of the key is given to id, after using this client may unlock/ to give a license key to my product..

(3) If is there any solutions please give

any one give the idea , how do to this?
Mar 18 '08 #1
1 1623
myth0s
32
HI,

For my application i want to create a license key, i have two method

(1) Using any id in client machine (like get hard disk id) php generate licence key

in brief client send they hard disk id , using this i will generate a unlock key for my product and send back to this client. By submitting this id,my application check the unlock key which i sent and system generate (both me and my application use same logic) right it wrong

(2) I have generate set of some unlock keys and of the key is given to id, after using this client may unlock/ to give a license key to my product..

(3) If is there any solutions please give

any one give the idea , how do to this?
If your application does not need hyper secure keys, you could go for a easier method.

To generate the key :
1) Ask the user to give you a username (5 or more characters is good).
2) Take that username and do something (optional),
2.1) That something could be : shift all the letter right or left.
2.2) That something could be : exchange the last 2 letters with the first 2.
2.3) Ect.
3) Add a salt to the username (Important!). IE: $username.'thisIsTheSalt';
4) Use MD5 or any other hash function to generate a "key" for you.
4.1) You can take only a subset of the generated hash.

To check if the user-typed key is valid :
1) Have a box for the user to enter his username and key.
2) Do the exact same computation.
3) Check if the computed key match the user-entered key.

Adding the salt and, if you want, shifting the letters in the username will obfuscate the generated MD5 well enough.

No one should be able to guess that in order to generate a valid key he will need to shift all the letters in his username three positions and then add 'tigersAreCute' to the string and the MD5 the string and then do substr(5,13).

It's not perfect, but in most applications, this approach is more than enough.
Mar 18 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: ConTactMe | last post by:
Does anyone know of a WYSIWYG page/ad creator with ftp upload abilities? I need a tool that will let my computer-illiterate friends create an ad, with pictures selected from their machine, and have...
1
by: Stefan Ram | last post by:
Some style guides suggest to repeat a DC.creator meta-element for multiple authors, but doesn't this contradict its specification? "An entity primarily responsible for making the content of the...
1
by: Gorilla | last post by:
I bound my package with EXPLAIN(YES), and it's got the following static SQL in it: EXEC SQL SELECT CARDF, RECLENGTH INTO :CARDF,:RECLENGTH FROM SYSIBM.SYSTABLES WHERE NAME = :TBNAME AND...
1
by: shenanwei | last post by:
I tried revoke all priviledge from user and REVOKE DROPIN ON SCHEMA Still the creator can drop the table.
0
by: Roshan | last post by:
Hi, I am trying to programatically add a FileSystemAccessRule for CREATOR OWNER to the filesystemsecurity obj of a folder whose creator and owner is a user account say 'SomeUser'. The rule gets...
0
by: anokun7 | last post by:
We are using DB2 v7 on OS/390. I have installed db2connect enterprise on my local windows XP box. Using db2connect I have created a dsn and could successfully connect using the DB2 control...
13
by: alive84 | last post by:
Hi there, I have a two problems concerning option button values on a report and data report creator reports. The situation: I have three option value boxes two have 3 option and one has...
3
by: alan | last post by:
Hello all, I'd like to know if there is a nice method of defining a functor creator which accepts an N-ary function and returns a functor based on that function. For example I have a function:...
0
by: phpFoxHelp | last post by:
Hey everyone! I am currently using phpFox to start an online community. I have it set so that there is no captcha nor email validation for new registrations. I am looking for a program that will...
1
by: itrose | last post by:
Hi All, I want to develop a Gmail account creator and YouTube account creator software using .Net? Does any one has idea of how to do it? Any idea will be really appreciable.
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.