SHARE
TWEET

ioncube_key_gen

denverkurt Jun 4th, 2020 1,092 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. header('Content-type: text/plain;');
  4.  
  5. function check_dynamic_key2($str, $salt) {
  6.     $md5 = md5($str);
  7.     $md5 = md5(sha1('Y5f6hDZsF4Wmx2mB'.$md5).$salt);
  8.     return sha1(md5('ct9JFUQD6g7bFX9a'.hash('sha256', $md5.'5HizxJYiIv9ytoZ6')));
  9. }
  10.  
  11. function ioncube_gen_key($str, $salt = '') {
  12.     global $func;
  13.     $hash = $func($str, $salt);
  14.     return "// @ioncube.dk ".$func."('".$str."', '".$salt."') -> '".$hash."' RANDOM\n";
  15. }
  16.  
  17.  
  18. function randomStr($col) {
  19.     $chars = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890';
  20.     $chars = str_split($chars);
  21.     $length_chars = count($chars);
  22.    
  23.     $random = '';
  24.     for ($n = 0; $n < $col; $n++) {
  25.         $random .= $chars[rand(0, $length_chars)];
  26.     }
  27.     return $random;
  28. }
  29.  
  30.  
  31. $func = 'check_dynamic_key2';
  32.  
  33. for ($n = 0; $n < 30; $n++) {
  34.     echo ioncube_gen_key(randomStr(16), randomStr(16));
  35. }
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