<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $key="3859E07585FA45D87535C20619AF14EC6EA25C179CF156D07DE26449EEEEA1FECA4BCA1A176EFBABBBCA6B1E21FCD95DBC557A2476728E30B2D4699AB5B62B73"; $transId = "60115287997"; $apiLogin = "5T9cRn9FK"; $Amount = "5.00"; $textToHash= "^". $apiLogin."^". $transId ."^". $Amount."^"; HMACSHA512($key,$textToHash); function HMACSHA512( $key,$textToHash) { if($key==null || $key=='') throw new Exception("HMACSHA512: key Parameter cannot be empty."); if($textToHash==null || $textToHash=='') throw new Exception("HMACSHA512: textToHash Parameter cannot be empty."); if(strlen($key)%2!=0 || strlen($key)<2) throw new Exception("HMACSHA512: key Parameter cannot be odd or less than 2 characters."); echo $key; $byte_array=unpack('C*', 'The quick fox jumped over the lazy brown dog'); var_dump($byte_array); return null; } function hextobin($hexstr) { $n = strlen($hexstr); $sbin=""; $i=0; while($i<$n) { $a =substr($hexstr,$i,2); $c = pack("H*",$a); if ($i==0){$sbin=$c;} else {$sbin.=$c;} $i+=2; } return $sbin; } ?> </body> </html>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more