Advertisement
leonsuke

encrypt

Aug 29th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. <?php
  2. // function decrypt_response($key, $response, $findchar="=") {
  3. // // Find character =
  4. // $a = strpos($response, $findchar); // 48
  5. // // Count text
  6. // $b = strlen($response); // 255
  7. // //
  8. // $c = $b - $a; // 207
  9. // //
  10. // $a_copy = $a+1;
  11. // //
  12. // $d = substr($response, $a_copy, $c);
  13. // //
  14. // // return $decrypted;
  15. // // return $response;
  16. // var_dump($decrypted);
  17. // die;
  18. // }
  19.  
  20. $token_aes = "paaOwBx6PCfihpxz";
  21. $url = "b/Zo3DDIc6iWfI+Q6o5V12o0kq4VeqdL7RtyEPJosM+/IbD+Nn6G/hkNZ0Prup8dSTd15O/1MA+GnZrgO0/H57fNY75JzGQmJzSTmjKWyQCdh+Z8KLGUEOwbjLAGJUOMgfCOnxCyvO34VZodMIkufw==";
  22.  
  23. $decrypted = openssl_decrypt($url , "aes-128-ecb" , $token_aes , OPENSSL_ZERO_PADDING);
  24.  
  25. var_dump($decrypted);
  26. die;
  27.  
  28. // decrypt_response($token_aes, $url);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement