Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.0.9.0
  8. * @ Author : DeZender
  9. * @ Release on : 08.08.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function IsBase64($s)
  15. {
  16. return (bool) preg_match('/^[a-zA-Z0-9\\/\\r\\n+]*={0,2}$/', $s);
  17. $decoded = base64_decode($s, true);
  18.  
  19. if (false === $decoded) {
  20. return false;
  21. }
  22.  
  23. if (base64_encode($decoded) != $s) {
  24. return false;
  25. }
  26.  
  27. return true;
  28. }
  29.  
  30. function decryptwz($string, $key, $_nKeySize)
  31. {
  32. $key_length = (int) $_nKeySize / 8;
  33. $block_length = 16;
  34. $data = base64_decode($string);
  35. $salt = substr($data, 8, 8);
  36. $encrypted = substr($data, 16);
  37. $rounds = 3;
  38.  
  39. if (128 === $_nKeySize) {
  40. $rounds = 2;
  41. }
  42.  
  43. $data00 = $key . $salt;
  44. $md5_hash = [];
  45. $md5_hash[0] = md5($data00, true);
  46. $result = $md5_hash[0];
  47.  
  48. for ($i = 1; $i < $rounds; $i++) {
  49. ............................................................
  50. ...............................
  51. ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement