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 Professional Discussion / Is there an encryption key plugin pout there ? Needed for game I am writing

Author
Message
DemonHill
18
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 8th Sep 2011 23:31
hi, I want to implement a game key system to allow users to activate a game I am writing. Is there a plugin out there or any code ? I.e someone pays for game on my site and gets an email with a unique key. Thx
Mugen Wizardry
User Banned
Posted: 8th Sep 2011 23:40
Use PHP and FTP :p

CHECK OUT MY WEBSITE AT http://imageposeidon.com/ !
DemonHill
18
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 8th Sep 2011 23:52
Hi, any more details as to how to do that within DBPRO ? thx

<a href="http://www.grandprixteammanager.com"><img src="wpimages/wpa1b529b2_05_06.jpg"a>
Mugen Wizardry
User Banned
Posted: 8th Sep 2011 23:54
Yea, use PHP to generate a random key, and use FTP to read it from the PHP page.

CHECK OUT MY WEBSITE AT http://imageposeidon.com/ !
DemonHill
18
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 9th Sep 2011 00:01
Sorry are you able to simplify the instructions, bit to advanced for me

http://www.grandprixteammanager.com
[img]http://www.grandprixteammanager.com"><img src="wpimages/wpa1b529b2_05_06.jpg[/img]
Mugen Wizardry
User Banned
Posted: 9th Sep 2011 00:04
im not gonna tell u how to do it. im now acting like some of the jerks on this forum. -.- (u know who u are)

CHECK OUT MY WEBSITE AT http://imageposeidon.com/ !
DemonHill
18
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 9th Sep 2011 00:14
Not asking you how to tell me how to do it, but provide some useful info. that myself and other community member could benefit from. Some code for DBPRo or an example... sorry to bother you....

http://www.grandprixteammanager.com
img]http://www.grandprixteammanager.com/wpimages/wpa1b529b2_05_06.jpg[/img]
Mugen Wizardry
User Banned
Posted: 9th Sep 2011 00:30
"nope, im not gonna do it for u". "i wish i could, but im too much of a code hog to care".

im not saying this to u, im trying to coax the jerks on this forum that did the SAME thing to me, im doing now -.-

CHECK OUT MY WEBSITE AT http://imageposeidon.com/ !
Mugen Wizardry
User Banned
Posted: 9th Sep 2011 00:38
rather than using a key, why not build a trial version, and a final version?

CHECK OUT MY WEBSITE AT http://imageposeidon.com/ !
DemonHill
18
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 9th Sep 2011 00:48
You know what, brilliant, so simple and I didnt think of that.... thx just the risk of it being posted on the web I guess, but I will look to do that... thx

JackDawson
14
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 9th Sep 2011 01:32 Edited at: 9th Sep 2011 01:34
You could generate a key without using FTP or PHP. You can generate the key by scanning your video card settings, and /or other hardware. You then create an array based off that list, you then generate random numbers based off of each piece of hardware you have been able to list using DBP. Then use an algorithm of your own choosing to generate a seed number based off all that info and convert it to HEX.

What I am trying to say is use the hardware that is in the computer to determine your random number. Then once the person is ready to register using an email address, you receive their email and its code that it will send to you and with your prewritten key program that only you possess you can send their new key sent back to them. Its by hand, you can do this all automated if you want, but that is where Mugen is correct, use Network and PHP for that stuff.

Its kind of what MS does with their Windows. Accept your creating a more primitive version of it. Make the key more then 16 Characters long so that its harder to crack.

Hope this gives you ideas.

"Life is like a box of chocolates.. eat it before it melts."
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 9th Sep 2011 02:41
@ DemonHill:

There's a easy way to pick a key unique to the computer by using DirectX. Click the following link and it'll take you to the thread we last talked about authentication keys (where I posted code on how to do it).

http://forum.thegamecreators.com/?m=forum_view&t=183687&b=1


@ Mugen Wizardry:

So because a few users harassed you it's ok for you to harass a newbie the same way? Two wrongs don't make a right.

DemonHill
18
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 9th Sep 2011 03:28
Thanks all, I will investigate further, but some good idea there. cheers

Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 9th Sep 2011 14:34
Hardware remembering codes are the most cruel things ever, whatever you do, DON'T CHOOSE TO DO THAT ONE.

Very simple, one password/activation code, one user. If the user is so stupid that he or she shares the code for piracy downloading, you can determine that there are more than one people using the same. In which case, you deactivate the code, and none of these people can use the game without paying you again.

This needs an all time internet connection while playing the game, but by today's standards i don't feel that the need of an online connection is such a hassle for playing a game on a PC.

-In.Dev.X: A unique heavy story based shoot'em ~35%
-CoreFleet: An underground commander unit based RTS ~15%
-TailsVSEggman: An Sonic themed RTS under development for idea presentation to Sega ~15%
DemonHill
18
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 9th Sep 2011 14:38 Edited at: 9th Sep 2011 14:40
How would I determine who is playing the game if it's off line ? I know how to read a file from my website but I am not a guru at databases etc. on my website.

I agree one key per user manually produced and emailed out seems to be the best way...

Any guidance on the above method for determining if a user have shared the key would be great. I use a method for checking a file on my site to see if they have the latest version, but it seems I would have to write to a database or soemthign to capture traffic and see the same key being used by multiple folks.

JackDawson
14
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 9th Sep 2011 15:02 Edited at: 9th Sep 2011 15:03
Quote: "Hardware remembering codes are the most cruel things ever, whatever you do, DON'T CHOOSE TO DO THAT ONE."


If your going to shoot someone Else's idea down, at least explain why and not be a vague about it.

Quote: "How would I determine who is playing the game if it's off line ?"


Which is exactly why I mentioned the hardware as a point to start with when it comes to your seed. I have been creating Encryptions for years in other languages and using the MAC addresses off of computers has always been a favorite of mine. I am not sure how to get the MAC address in DarkBasic Pro, but you could definitely use Hardware info with DBP. Who knows, there might be a way to get more detailed info with DBP. Might be worth a look.

"Life is like a box of chocolates.. eat it before it melts."
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Sep 2011 15:49
Quote: "I have been creating Encryptions for years in other languages and using the MAC addresses off of computers has always been a favorite of mine."

Which was Quel's point. As soon as you change the network card, the program no longer works - congratulations, you've just punished a legitimate customer of your application!

Quote: "This needs an all time internet connection while playing the game"

... and sorry Quel, but that's just as bad - now I can't play the game whenever I don't have an internet connection, for example if I'm on the road.

As I understand it, Steam verifies the initial installation, but from that point onwards allows you to play offline - that's a legitimate compromise.

Of course, all of the above is my opinion only - you may do as you wish.


@Mugen Wizardry,
Quote: "im not saying this to u, im trying to coax the jerks on this forum that did the SAME thing to me, im doing now -.-"

... and you were doing so well until now.

What you did was ask the same vague questions over and over, reject answers without clarifying what you wanted or what was wrong with the answers, insult those who were helping you and then were surprised when they reacted, and bump posts when people decided not to respond to you any more - that was not them acting a jerk, it was you.

Now, take this as a final warning - if you start this up again, we'll ban you again.

Mugen Wizardry
User Banned
Posted: 9th Sep 2011 16:14 Edited at: 9th Sep 2011 16:18
Hey. wo wo WOH. I take threats seriously. Do NOT threaten me. Now. we're all gentlemen. You got something against me? Say it out loud. I'd like to know.

CHECK OUT MY WEBSITE AT http://imageposeidon.com/ !
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 9th Sep 2011 18:21 Edited at: 9th Sep 2011 18:28
Quote: "You got something against me? Say it out loud."


I thought he just did.

Quote: "What you did was ask the same vague questions over and over, reject answers without clarifying what you wanted or what was wrong with the answers, insult those who were helping you and then were surprised when they reacted, and bump posts when people decided not to respond to you any more - that was not them acting a jerk, it was you."


and I've seen it in almost every thread where someone is trying to help you.


Back on topic...

Protection schemes are only good up to a point. Hackers have proven that most of the schemes are pretty much useless.

If your game/program is popular enough, it WILL get hacked and pirated.

The most effective I've seen involves generating a key at purchase. Generally a long random key. Store it in a database, and only have the software perform the online check when it's being installed, or when the program checks for online updates.

The rest of the time the program can run online or offline without performing the check. It's a reasonable compromise, but requires some web page coding and some database work.

Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 9th Sep 2011 18:48
Yeah we've gone over this before. I tend to agree that it's best not to link the key to the users hardware. The industry standard is to just make a key that goes with the game itself rather than linking it to specific hardware. In the thread I linked to above I posted a link to a previous thread where I made this code:

Making a key using a users name (no hardware link):



@ Mugen Wizardry:

The thing you don't understand is it's not a good idea to go against IanM because all of us will be against you. IanM is a respected member of this community and has done more for Darkbasic Pro/TGC since he's been here than you'll ever do in your entire lifetime. If you feel you need to attack somebody focus on me and leave IanM alone.

Mugen Wizardry
User Banned
Posted: 9th Sep 2011 18:52
IanM needs to quit attacking ME! :<

CHECK OUT MY WEBSITE AT http://imageposeidon.com/ !
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 9th Sep 2011 19:01
He only said that because you were being mean to DemonHill who has done nothing bad to you. You'll be ok if you just stop being mean to people and taking everything people say to you as a personal attack.

Mugen Wizardry
User Banned
Posted: 9th Sep 2011 19:04
Fine. But I dont wanna see ANYONE attack me again. Otherwise, I WILL use it against u

CHECK OUT MY WEBSITE AT http://imageposeidon.com/ !
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 9th Sep 2011 19:18
That's ok with me... I'd rather you target me than anyone else. Just be nice to everybody and it won't have to come to that.

JackDawson
14
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 10th Sep 2011 00:24 Edited at: 10th Sep 2011 00:30
Quote: "Which was Quel's point. As soon as you change the network card, the program no longer works - congratulations, you've just punished a legitimate customer of your application!"


Quote: "Yeah we've gone over this before. I tend to agree that it's best not to link the key to the users hardware."


Not quite as bad as you think think. You see, the whole purpose is to establish the first key. Once it generates the key, then the key provider can associate a new key with the email attached. Problem solved. The 2nd Key will work only with that email.

If say someone gave the key out, the program will force not only the email address in it, but can send a small verification key back to the same computer using a code that came to that exact email.

Remember the first time of the hardware is to establish that they are real and not a bot. The 2nd key does not even have to go back to the Creator to verify it. You can do this in many ways. Its really up to the programmer.

In the end though, there is no 100% safe way to keep a hacker from figuring out your code. So the key is more of a annoyance then anything.

"Life is like a box of chocolates.. eat it before it melts."
Mr Bigglesworth
18
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 10th Sep 2011 08:23 Edited at: 10th Sep 2011 08:23
I see copy protection as more of a hassle for the consumer. When I buy games these days, I don't want to spend 30 minutes trying to activate online and go through a painstaking process. Most games aren't like this (thankfully ) but the ones that are...

Quote: "Fine. But I dont wanna see ANYONE attack me again. Otherwise, I WILL use it against u"


Please just be polite to everyone, even if they are rude to you. They are a few people that I find rude, but acting like them or insulting them will only make problems worse.

Login to post a reply

Server time is: 2026-07-11 14:37:02
Your offset time is: 2026-07-11 14:37:02