pastebin - collaborative debugging tool
kpaste.net RSS


decrypt
Posted by Anonymous on Fri 13th Aug 2021 13:00
raw | new post
modification of post by Anonymous (view diff)

  1. <?php
  2.         $key = md5('ISCC');
  3.         $str = base64_decode('fR4aHWwuFCYYVydFRxMqHhhCKBseH1dbFygrRxIWJ1UYFhotFjA=');
  4.         $klen = strlen($key);
  5.         $len = strlen($str);
  6.         $x = 0;
  7.         for ($i=0; $i < $len; $i++) {
  8.                 if ($x == $klen){
  9.                         $x = 0;
  10.                 }
  11.                 $char .= $key[$x];
  12.                 $x+=1;
  13.         }
  14.         for($i = 0; $i < $len; $i ++){
  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.         }
  17.         print($data);
  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.

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