vbGore Free Online RPG Engine

Revolutionizing Visual Basic ORPG Development
It is currently Wed Jun 19, 2013 8:34 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Random Key Gen.
PostPosted: Sun Jan 20, 2008 7:40 am 
=^.^= Kitty =^.^=

Joined: Thu Apr 26, 2007 5:28 pm
Posts: 1162
HEY EVERYBODY!!!

Thanks to Cruzn and Gutterpunk i was able to make a program that generates CD keys in the form of

XXXXX-XXXXX-XXXX-XXXXX-XXXXX

And since my program is done i am willing to help anyone on vbgore make CD keys if needed they are free btw and toatally random harnessing the power of php.


Is anyone interested?
If you are interested please supply a number of keys also...
*100K limit unless otherwise*


Last edited by bortix on Sun Jan 20, 2008 10:29 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 20, 2008 10:05 am 
=^.^= Kitty =^.^=

Joined: Thu Apr 26, 2007 5:28 pm
Posts: 1162
67700 Keys Currently Generated in 2Hours...


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 20, 2008 10:27 am 
Slave to the BB

Joined: Tue Jul 31, 2007 8:45 am
Posts: 3273
Location: United Kingdom
Can I have 60k keys? :P


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 20, 2008 10:28 am 
=^.^= Kitty =^.^=

Joined: Thu Apr 26, 2007 5:28 pm
Posts: 1162
i got 73500 right now

what format do u want them in

XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

i have
73.5K of
XXXXX-XXXXX-XXXX-XXXXX-XXXXX
sql sump file?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 20, 2008 10:30 am 
Slave to the BB

Joined: Tue Jul 31, 2007 8:45 am
Posts: 3273
Location: United Kingdom
.txt! :D


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 20, 2008 10:37 am 
=^.^= Kitty =^.^=

Joined: Thu Apr 26, 2007 5:28 pm
Posts: 1162
they are all in a sql so u can dump them directly into ur db and use them for ur game


PMed u the Keys[/url]


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 20, 2008 11:16 am 
+7 Claymore of Slaying

Joined: Sun Apr 01, 2007 6:34 pm
Posts: 577
I dont fully understand, you are talking about restriction keys? (like you need the key to play someones game)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 20, 2008 12:35 pm 
=^.^= Kitty =^.^=

Joined: Tue Sep 05, 2006 4:00 pm
Posts: 964
Location: Oregon
You really couldn't figure out how to generate a key on your own? Sogan said you were good at PHP.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 20, 2008 1:07 pm 
Slave to the BB

Joined: Tue Jul 31, 2007 8:45 am
Posts: 3273
Location: United Kingdom
<?php
echo rand(10000, 99999);
echo "-";
echo rand(10000, 99999);
echo "-";
echo rand(10000, 99999);
echo "-";
echo rand(10000, 99999);?>

http://www.rkfrost.info/keygen.php


:P Been learning PHP for a day. That wasn't hard :D


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 20, 2008 1:30 pm 
Hungry Zombie

Joined: Sat Jun 05, 1976 10:06 pm
Posts: 3179
Location: Auckland, New Zealand
Anyone could generate a key? Right? So what's the point? Darkfrost yours is just a completely random key, not one that can conform to an algorithm or anything :P


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 20, 2008 1:47 pm 
Site Admin

Joined: Fri Jul 14, 2006 4:00 pm
Posts: 11230
Location: Washington
bortix wrote:
67700 Keys Currently Generated in 2Hours...


I have to say, thats pretty damn slow.

Made this in about 5 minutes without knowing PHP. FasterFox tells me it takes about 2-3 seconds to make the 10,000 keys. Without writing the text out and putting it into a DB, it wouldn't be much slower. :wink:

Code:
<font face="courier new">
<?php

echo "Oh fux, its the key rape!<br />";

$num_keys = 10000; // Number of keys
$num_parts = 4; // Number of parts on the key (ie part-part-part...)
$num_chars = 8; // Number of characters per part (ie xxxxxx-xxxxxx...)

for ($i = 0; $i < $num_keys; $i++)
{
   $key = "";
   
   for ($k = 0; $k < $num_parts; $k++)
   {
      for ($j = 0; $j < $num_chars; $j++)
         $key .= randchr();

      if ($k < $num_parts - 1)
         $key .= "-";
   }
   
   echo $key . "<br />";
}

function randchr()
{
   $c = mt_rand(48, 57 + 26);   
   if ($c > 57)
      $c += 7;
   return chr($c);
}

?>
</font>


Last edited by Spodi on Sun Jan 20, 2008 1:52 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 20, 2008 1:47 pm 
(>^_^)>Kirby<(^_^<)

Joined: Sun May 20, 2007 10:34 am
Posts: 851
well actually, it IS based on the server OS's algorithm for randomness, to do w/ miliseconds and how many BSOD's there were that day.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 20, 2008 2:37 pm 
Slave to the BB

Joined: Sun May 27, 2007 6:54 am
Posts: 3110
Location: new york
personally i'd rather a random key than an algorithm based one. makes writing a key gen that much harder. if you're having the keys stored in a DB, then checking against that and flagging that key at registration it's a little more secure. all those apps that ask for a cd key and only check if it conforms to a specific algorithm are a joke as far as preventing piracy. (and oh how i love them for it)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 20, 2008 2:43 pm 
=^.^= Kitty =^.^=

Joined: Thu Apr 26, 2007 5:28 pm
Posts: 1162
190K of keys anyone want em?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 20, 2008 2:52 pm 
Hungry Zombie

Joined: Sat Jun 05, 1976 10:06 pm
Posts: 3179
Location: Auckland, New Zealand
gutterpunk wrote:
personally i'd rather a random key than an algorithm based one. makes writing a key gen that much harder. if you're having the keys stored in a DB, then checking against that and flagging that key at registration it's a little more secure. all those apps that ask for a cd key and only check if it conforms to a specific algorithm are a joke as far as preventing piracy. (and oh how i love them for it)

Heh, then you can just decompile, try to find that check and make it return true every time on the service call. Unless this is all server side.. :D which is alright for games. Perfect infact.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next

All times are UTC - 8 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group