Software Design
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreSoftware Design

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 2nd, 2004, 06:53 PM
secret_ident secret_ident is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 2 secret_ident User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
design "product keys"

I have a software that I would like to have product keys to register the software.

These product keys will be used only once, and will tell the machine limits that the customer can create in the program.
anyone have an idea how to do these or the software to do this?


Thanks,
Daniel

Reply With Quote
  #2  
Old June 3rd, 2004, 01:19 PM
dog135's Avatar
dog135 dog135 is offline
Doggie
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Location: Seattle, WA
Posts: 751 dog135 User rank is Corporal (100 - 500 Reputation Level)dog135 User rank is Corporal (100 - 500 Reputation Level)dog135 User rank is Corporal (100 - 500 Reputation Level)dog135 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 10 h 38 m 25 sec
Reputation Power: 7
Just make a good random number generator and store the values to your database. Then check against that. That works if you're registering online.

If you don't have online registration, you run into the problem of people being able to share codes between each other.

Programs that use an equation to generate the code often get cracked and you'll see small programs that generate a unique number for your computer.

One simple method I use to generate random numbers is to use a large file (iso images work for this) and xor the bytes against themselfs over an array. Then xor rand() to finish it off

ie:
key[0x0FFFFF] (1Meg of keys)
pos=file position

key[pos&0x0FFFFF]=key[pos&0x0FFFFF]^nextByteFromFile^rand()
__________________
"Science is constructed of facts as a house is of stones. But a collection of facts is no more a science than a heap of stones is a house." - Henri Poincare

Reply With Quote
  #3  
Old June 3rd, 2004, 01:35 PM
secret_ident secret_ident is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 2 secret_ident User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm new at this, and I am planning on having it activate online, if thats easier. Do you know any sample programs that I could look at, and view sample codes on how to do something like this because I don't know a thing about it.

Thanks,
Daniel T.

Reply With Quote
  #4  
Old June 4th, 2004, 12:22 PM
dog135's Avatar
dog135 dog135 is offline
Doggie
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Location: Seattle, WA
Posts: 751 dog135 User rank is Corporal (100 - 500 Reputation Level)dog135 User rank is Corporal (100 - 500 Reputation Level)dog135 User rank is Corporal (100 - 500 Reputation Level)dog135 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 10 h 38 m 25 sec
Reputation Power: 7
Nope, sorry, never had to write software that needs to be registered. All my stuff is in-house.

I just know how to make a bunch of unique number because we use them for encryption of data.

Reply With Quote
  #5  
Old June 4th, 2004, 11:06 PM
dejaone dejaone is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 300 dejaone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 7 m 22 sec
Reputation Power: 5
you're talking about shareware key generation. Try to search shareware resource for this. I wrote my own key generator. I know some shareware registration company offers online key generation service

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreSoftware Design > design "product keys"


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT