I was just trying something out.. for the record, no im not planning on having people pay for any of MY scripts, that would be a crime.
But just for fun I wondered how one could make a script that takes the name, and generates a KEY, or serial number.
Here is what I have so far (yes, its horrible).
<?php
$name = "Big Nerd";
echo $name."<br>";
$key = "";
$sl = strlen($regname);
$key = $sl;
$sp = ($sl / 2);
$rn = substr($regname,$sp,1);
$rx = md5($rn);
$rp = strtoupper(substr($rx,1,2));
$key.= $rp."-";
if (strlen($key) <= 4) {
$key ="Z".$key;
}
$ax = ($sl + 12);
$key.=$ax;
$key.=strtoupper(substr($rx,$sl,2));
$key.="-".round($sl*10/2+8/9*102/12,0);
$key.=rand(66,71)."-";
$rkey = md5($key);
$key.= strtoupper(substr($rkey,6,4));
$xkey.= crypt($key,$sl);
$xkey = strtoupper($xkey);
$xkey = substr($xkey,2,4);
$key.="-".$xkey;
echo $key;
?>
Now, just for fun, I used a obfuscator to see the plausability of this style of generating a key (which it makes one that looks pretty, anyways).
I could break it down & make a "keygen" for it myself.
I find it uses too many functions, it is definately not feasable for use as it is far from optimized...
Any ideas on how to make this better?