Avatar of philosullivan
philosullivan

asked on 

PHP to ASP code

i have a code snippet in PHP that i recieved when i purchased exeshield to genereate serial numbers thru my website, i am not a php guy, i would appreceate any help.
-thanks
<?php
  $name=$_REQUEST['fullname'] ;
  $regnum=$_REQUEST['regnumber'];
  $encryptionkey='put your encryption key here';
  	$regnum=strtoupper($regnum);
        $str=md5($regnum.$name.$encryptionkey);
        $temp1=substr($str,0,19);
        $temp2=substr($str,31,1);
        $str=$temp1.$temp2;
        $str1=substr($str,0,4);
	$str2=substr($str,4,4);
	$str3=substr($str,8,4);
	$str4=substr($str, 12,4);
	$str5=substr($str,16,4);
	$key=($str1.'-'.$str2.'-'.$str3.'-'.$str4.'-'.$str5);
	$key=strtoupper($key);
	echo("Thank you for registering this software. Here is your registration information<br><br>");
	echo('For name enter: ');
	echo($name);
	echo('<br>For key enter: ');
	echo($key);
	
?>

Open in new window

PHPASP

Avatar of undefined
Last Comment
NicoJuicy

8/22/2022 - Mon