daily pastebin goal
45%
SHARE
TWEET

Untitled

a guest Aug 16th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function decrypt($input)
  2. {
  3.     global $key;
  4.  
  5.     if($input == '') return $input;
  6.     $data = explode(',', base64_decode($input));
  7.     if(count($data) != 2) return $input;
  8.     $input = $data[0];
  9.     $size  = $data[1];
  10.     $iv_size = mcrypt_get_iv_size(MCRYPT_GOST, MCRYPT_MODE_ECB);
  11.     $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
  12.     $input = mcrypt_decrypt(MCRYPT_GOST, $key, $input, MCRYPT_MODE_ECB, $iv);
  13.     return substr($input,0,$size);
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top