Difference between
modified post d98cae7c by Anonymous on Fri 2nd Dec 2022 14:04
original post 516b03a2c by Anonymous on Fri 13th Aug 2021 13:00
Download diff
Show
old version |
new version |
both versions
| 1 | 1 | <?php | |
| 2 | 2 | $key = md5('ISCC'); | |
| 3 | 3 | $str = base64_decode('fR4aHWwuFCYYVydFRxMqHhhCKBseH1dbFygrRxIWJ1UYFhotFjA='); | |
| 4 | 4 | $klen = strlen($key); | |
| 5 | 5 | $len = strlen($str); | |
| 6 | 6 | $x = 0; | |
| 7 | 7 | for ($i=0; $i < $len; $i++) { | |
| 8 | 8 | if ($x == $klen){ | |
| 9 | 9 | $x = 0; | |
| 10 | 10 | } | |
| 11 | 11 | $char .= $key[$x]; | |
| 12 | 12 | $x+=1; | |
| 13 | 13 | } | |
| 14 | 14 | for($i = 0; $i < $len; $i ++){ | |
| 15 | 15 | $data .= (ord($str[$i])-ord($char[$i]))>0?chr(ord($str[$i])-ord($char[$i])):chr(ord($str[$i])-ord($char[$i])+128); | |
| 16 | 16 | } | |
| 17 | 17 | print($data); | |
| 18 | 18 | ?> |
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.
kpaste.net RSS