Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / CD Key encryption code required for NEW GAME

Author
Message
DemonHill
17
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 19th May 2008 17:12
Hi,

I am righting a game and wondered if anyone had any code for a KEY code which woudl take a users email address and name and produe a unique key code.

Clearly if I make this game available I'd like to be able to email out specific codes for users who have registered it.

any code would be great thx
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 21st May 2008 08:47
Make a file that lists all of the valid key codes, and store it on the Internet.
I'm not sure how to make a code example, but I'm sure if you go by those guidelines you might be able to put something together that can do it.


Kirby is in my avatar because he rules. Live with it!
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 21st May 2008 10:33
There was a user that pops in from time to time ususalyl with math or encryption examples. Look up Alien001 I think. Alien 01 somtething like that. He had a series of encryption routines. Might not be exactly what you are looking for, but it may give you some ideas.

Also, I could have sworn TDK_Man had a method of a registartion check to enable or disable software.

Enjoy your day.
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 23rd May 2008 01:09 Edited at: 23rd May 2008 01:14
I would make a database (this could be an array) that stores every possible code and the code's status (inactive, issued or registered).
When someone bought the software you'd issue a random key code from the remaining inactive ones in the database, they would have to register before using the software. I would have them set up an account with custom user ID and password which would stored on your computer to make sure only they have access to the registered copy.
Another security measure you could add is to store the date the key code was allocated and after a period, if it still hasn't been registered, reset the code's state to inactive. This would prevent "active" codes from stacking up which would have made it easier for fraudsters to guess a valid code. You'd obviously warn the customer prior to doing this and give them a deadline for registration.

I think I had some good ideas there but I've never done any like it before so I don't have a full understanding of what's required.

It is far better to complete a 10 line program than to start a 10,000 line program.
DemonHill
17
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 23rd May 2008 12:51
great thx guys, I'm not great at coding but I'll give it a shot and post back my results for others to leverage.... thx

Login to post a reply

Server time is: 2025-06-05 21:15:32
Your offset time is: 2025-06-05 21:15:32