pastebin - collaborative debugging tool
kpaste.net RSS


decrypt
Posted by Anonymous on Fri 13th Aug 2021 12:56
raw | new post
view followups (newest first): decrypt by Anonymous

  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.         {
  10.             $x = 0;
  11.         }
  12.         $char .= $key[$x];
  13.         $x+=1;
  14.     }
  15.         for($i = 0; $i < $len; $i ++){
  16.                 $data .= (ord($str[$i])-ord($char[$i]))>0?chr(ord($str[$i])-ord($char[$i])):chr(ord($str[$i])-ord($char[$i])+128);
  17.         }
  18.         print($data);
  19. ?>

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