469,631 Members | 970 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,631 developers. It's quick & easy.

License key generator

190 100+
Hi all,

I want to idea/code for license key generation.

In detail, I give a product to client, while installation it will generate one key and asked unlock for that key. Client mail to this key to me and asked unlock key. After got unlock key from me, client enter to application and continue installation (after checking correct unlock key inbuilt function).

How i can generate key using md5/hash or some thing....

In my application should generate the key and unlock with my keyword....

like md5 generate key with my word "MyWorld" - md5(MyWorld)...

Pls help
Apr 1 '08 #1
6 5269
TheServant
1,168 Expert 1GB
Well, you want something a little better than md5(the word), because that will be an easy guess for anyone using the software.

Can you have an online database and each copy you make you have a unique id number? That way, it can only be activated once. You could then have a fance encryption for the id number and check that with the one stored in the database.

What I mean by fancy is:
md5(md5(md5($id_number * 0.2546 )))

Or something a little more elaborate.
Apr 1 '08 #2
Markus
6,050 Expert 4TB
Well, you want something a little better than md5(the word), because that will be an easy guess for anyone using the software.

Can you have an online database and each copy you make you have a unique id number? That way, it can only be activated once. You could then have a fance encryption for the id number and check that with the one stored in the database.

What I mean by fancy is:
md5(md5(md5($id_number * 0.2546 )))

Or something a little more elaborate.
Yeh, you're going to have to use a database to keep track of the keys.

TheServants ideology seems pretty water tight!

Regards,
Apr 1 '08 #3
maheswaran
190 100+
Hi,

Is that need to maintain a database for it's?. My Idea is My application generate the some set of codes (for example 12,23,45,6) only and using this codes i generate the license key.So client send this to me i again re-generate unlock key....

If am confuse please suggest one good way...?
Apr 2 '08 #4
TheServant
1,168 Expert 1GB
I don't understand how you plan on identifying users? So there will only be one copy of this program? If your program generates random codes everytime then what is the point of having a security system?

Again, I think you need to have one number per product. If you make 10 copies, you should have 10 different keys. The only random numbers that should occur is when you make the CD, not when you install or run or what ever.

The user can click Activate or Register or what ever and then that can mail you (or what ever) so you (or the server) can return a confirmation that that specific CD is: a) Unregistered/Unactivated and b) Using a valid CD key.

If you have random CD keys occuring all the time, then there is no stopping people making 100 copies and then saying to you they installed it 100 times. I hope you understand.
Apr 2 '08 #5
maheswaran
190 100+
HI,

from that point i got confused.....

Could give a suggestion for clear idea...

That's how can i proceed..
Apr 2 '08 #6
maheswaran
190 100+
I want to this below flow

1) User buy my product.

2) Run Installation kid

3) Application give/generate one key and asked unlock key for this

4) User mail this key

5) I send a unlock key for that generated key

*** In this case there is no contact between my application and user application ****
Just have same set in both side...

Is this not secure way.... pls suggest some other secure way....
Apr 2 '08 #7

Post your reply

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

Similar topics

11 posts views Thread by gooze | last post: by
34 posts views Thread by Michael Foord | last post: by
9 posts views Thread by Daniel Keep | last post: by
1 post views Thread by askvinod | last post: by
4 posts views Thread by Chad | last post: by
6 posts views Thread by Joe | last post: by
4 posts views Thread by Martitza | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.