Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.1.0.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ Official site : http://DeZender.Net
- *
- */
- namespace App\lib;
- final class Activation
- {
- static private $RTL_THEME_SLUG = 'digilara';
- static private $WEOWPS_RTL_OIEKS = 'd0a7e7997b6d5fcd55f4b5c32611b81';
- static private $RTL_OAUTH_PID = 'new_product';
- static private $RTL_OAUTH_API = 'rtl539bb6eb71527d7e39ced6aeee72e9';
- static private $RTL_OPTIONS_NAME = 'digilara_rtl_license_options';
- static private $RTL_SECURE_ACTIVE = 'rtl539bb6eb71527d7e39ced6aeee72e9digilarairworkesactive';
- static private $instance;
- static private $hash_method = 'AES-256-CBC';
- private $hash_key;
- static public function check_license($username, $orderid)
- {
- $check = new Activation();
- if ($_SERVER['HTTP_HOST'] != 'localhost') {
- return $check->rtl_oauth_license_settings_page($username, $orderid);
- }
- else {
- return $check->local_license($username);
- }
- }
- static public function get_instance()
- {
- if (self::$instance == NULL) {
- self::$instance = new Activation();
- }
- return self::$instance;
- }
- private function __construct()
- {
- $this->hash_key = hash('sha256', 'd0a7e7997b6d5fcd55f4b5c32611b81');
- }
- public function mc_encrypt($encrypt, $key)
- {
- $encrypt = serialize($encrypt);
- $iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC), MCRYPT_DEV_URANDOM);
- $key = pack('H*', $key);
- $mac = hash_hmac('sha256', $encrypt, substr(bin2hex($key), -32));
- $passcrypt = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $encrypt . $mac, MCRYPT_MODE_CBC, $iv);
- $encoded = base64_encode($passcrypt) . '|' . base64_encode($iv);
- return $encoded;
- }
- public function mc_decrypt($decrypt, $key)
- {
- $decrypt = explode('|', $decrypt . '|');
- $decoded = base64_decode($decrypt[0]);
- $iv = base64_decode($decrypt[1]);
- if (strlen($iv) !== mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC)) {
- return false;
- }
- $key = pack('H*', $key);
- $decrypted = trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key, $decoded, MCRYPT_MODE_CBC, $iv));
- $mac = substr($decrypted, -64);
- $decrypted = substr($decrypted, 0, -64);
- ................................................................................
- ................................................
- .........................
Add Comment
Please, Sign In to add comment