pastebin - collaborative debugging tool
kpaste.net RSS

Difference between
modified post 516b03a2c by Anonymous on Fri 13th Aug 2021 13:00
original post f73f0f8d9 by Anonymous on Fri 13th Aug 2021 12:56
Download diff
Show old version | new version | both versions

    
11
<?php
22
	$key = md5('ISCC');
33
	$str = base64_decode('fR4aHWwuFCYYVydFRxMqHhhCKBseH1dbFygrRxIWJ1UYFhotFjA=');
44
	$klen = strlen($key);
55
	$len = strlen($str);
66
	$x = 0;
77
	for ($i=0; $i < $len; $i++) {
8-
        if ($x == $klen)
8+
        	if ($x == $klen){
109
            $x = 0;
1110
        }
1211
        $char .= $key[$x];
1312
        $x+=1;
1413
    }
1514
	for($i = 0; $i < $len; $i ++){
1615
		$data .= (ord($str[$i])-ord($char[$i]))>0?chr(ord($str[$i])-ord($char[$i])):chr(ord($str[$i])-ord($char[$i])+128);
1716
	}
1817
	print($data);
1918
?>

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at