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 / regristration enter

Author
Message
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 24th Sep 2005 02:54
how, would I make a regrister? You know, you type in the code and it will allow you to use it?

I think this is somewhere on the forum elsewhere. I tried searching. I'll still search until I find something, or until some one can help me.

------------------------
Visit my website of games
http://www.dabip.co.nr!
Me!
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 24th Sep 2005 16:37 Edited at: 24th Sep 2005 16:39
a simple one would work like this

you have two numbers in your code, one is the open code, the other the lock

the user types in the key you provide

inside the program the computer adds the key to the open code number..eg

12345 +
67894=
80239

if the result is the same as the lock number then the user code was correct, so in this case the number inside your code would be 80239, in code it would be

input "enter user code";code
if code+67894=80239 then activate=1

and in the parts of your code where things are de-activated by not having the code

if select_save=1 and activate=1
save_files
else
print"you need to register before you can save files"
endif

thats simple example, in a full program you would hide the lock number and the open code by creating it from an equation, so anyone looking through your code with a hex editor couldn`t see the embedded number, and rather than just check when the save routine was called you would check during the save as well in several places and mess it up or crash the program if the activate flag was 0, also you would not use simple addition, or even just one number for the lock, you just need to think tricky.



we know where area 51 is, but where are areas 1 to 50?, and what do they do there?.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 24th Sep 2005 17:10 Edited at: 24th Sep 2005 20:42
I developed a system to protect DB programs which although not totally uncrackable does offer some protection.

Here's a small program which I have used the system on which you can download and take a look at:

http://www.computechtenerife.com/protected.rar

If you run it, you will see it gives you a menu with certain options. This would be replaced with your own game menu.

This doesn't actually include any game code - the entires are just dummies.

Notice that option 3 is disabled. Your task is to enable that option without asking me for an unlock key.

One of the options will generate a txt file so your user can send it to you via e-mail. You generate a key and e-mail it back.

Another menu option lets you import the key and the disabled option(s) are enabled.

Try your best to enable the 3D option. If you fail, send the reg.txt file to me and I'll send you a key back.

TDK_Man

BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 24th Sep 2005 18:38
I made one for DB Pro, but I imagine it would also work for Classic. The application generates a registration file, and also the code for your program.

Like TDK's it's not uncrackable, in fact it's probably easier to break. But it does allow you to generate unique keys per user, and unique protection for each program you make.

http://darkbasic.biglaugh.co.uk/bvencrypt.html

dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 24th Sep 2005 19:02
Thank TDK, but the link doesn't work. I'm also not quite understanding what you're saying. So basicly, it creates its own encrypted reg code. I send the code it generates to you and you decrypt it and I enter that in?

And BATVINK, I'm on my stepdads computer, I'm not allowed to install anything on my PC. What exactly does it do? How does it work?

And thanks you guys for helping me out so far.

------------------------
Visit my website of games
http://www.dabip.co.nr!
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 24th Sep 2005 20:44
Oops - sorry about that - I typed one too many e's in the URL!

Try again now I've edited it...

You'll see what it does when I run it. You don't install anything - just run the exe.

If you can't trust me, who can you trust?!

TDK_Man

SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 25th Sep 2005 01:03
TDK: Is there any situation you've not written a program for?

...maybe one day I'll finish a project
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 25th Sep 2005 01:46 Edited at: 26th Sep 2005 17:53
No I was talking about batvink. His program requires an install. I don't know why. But yah. Dang rars. My stepdad doesn't have win rar on his pc. I will be back as I have winrar on my PC. Just a sec, I'll be editing.edit: Wow, that is one tough jacket..... I can't get it. Here's the reg code. UserID=MN885KJ@<

------------------------
Visit my website of games
http://www.dabip.co.nr!
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 27th Sep 2005 19:45
SimSmall:

Ummmmm... don't think so! Lol.

Quote: "Here's the reg code. UserID=MN885KJ@<"


Was that from my prog? If so, copy the text file into a post - please include ALL lines. I'll paste the key back here for you.

Don't worry - the key won't work for anyone else if they have downloaded it!

TDK_Man

dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 28th Sep 2005 01:53
okay,

for the Reg.txt file


and the protest.in file


------------------------
Visit my website of games
http://www.dabip.co.nr!
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 28th Sep 2005 05:03
Paste this into a new file created with notepad and save it into the same folder as protected.exe.

Then rename the file Reg.key.

Finally, import the key into the program to enable the disabled option.



Note: This key will not work for anyone else or on any other machine.

TDK_Man

dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 28th Sep 2005 07:24
So I, take the information you gave me, and make a NEW file named Reg.kay? SO in the same file, is the EXE, Reg.txt, Protected.ini, and the new Reg.key? And I only make changes to a new file?

------------------------
Visit my website of games
http://www.dabip.co.nr!
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 28th Sep 2005 16:51
You need to stop mixing up the words file and folder. It makes the meaning of your posts completely different when you say "in the same file" when you really mean "in the same folder".

Just do exactly what I said in the last post and you can't go wrong.

TDK_Man

Login to post a reply

Server time is: 2025-05-22 12:56:08
Your offset time is: 2025-05-22 12:56:08