Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php class Mo_Ldap_Local_Util { public static function is_customer_verified() ..

Decoded Output download

<?php 
 
 
class Mo_Ldap_Local_Util 
{ 
    public static function is_customer_verified() 
    { 
        $xI = get_option("mo_ldap_local_admin_email"); 
        $xc = get_option("mo_ldap_local_admin_customer_key"); 
        if (!$xI || !$xc || !is_numeric(trim($xc))) { 
            goto HW; 
        } 
        return 1; 
        goto gu; 
        HW: 
        return 0; 
        gu: 
    } 
    public static function check_empty_or_null($QN) 
    { 
        if (!(!isset($QN) || empty($QN))) { 
            goto FS; 
        } 
        return true; 
        FS: 
        return false; 
    } 
    public static function encrypt($yw) 
    { 
        if (Mo_Ldap_Local_Util::is_extension_installed("openssl")) { 
            goto n4; 
        } 
        return; 
        n4: 
        $fz = get_option("mo_ldap_local_customer_token"); 
        $dU = "AES-128-ECB"; 
        $C9 = openssl_encrypt($yw, $dU, $fz, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING); 
        return base64_encode($C9); 
    } 
    public static function decrypt($QN) 
    { 
        if (Mo_Ldap_Local_Util::is_extension_installed("openssl")) { 
            goto WK; 
        } 
        return; 
        WK: 
        $Qn = base64_decode(strval($QN)); 
        $fz = get_option("mo_ldap_local_customer_token"); 
        $dU = "AES-128-ECB"; 
        $iu = openssl_cipher_iv_length($dU); 
        $Ln = substr($Qn, $iu); 
        $t9 = openssl_decrypt($Ln, $dU, $fz, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING); 
        return $t9; 
    } 
    public static function is_curl_installed() 
    { 
        if (in_array("curl", get_loaded_extensions())) { 
            goto AW; 
        } 
        return 0; 
        goto oV; 
        AW: 
        return 1; 
        oV: 
    } 
    public static function bp_hjey_hpfeh_dy_mysvejr($Hq) 
    { 
        if (!(strcasecmp($Hq, "none") == 0)) { 
            goto op; 
        } 
        return; 
        op: 
        $bY = new DateTime("now"); 
        $at = $bY->getTimestamp(); 
        wp_schedule_event($at, "daily", "mo_ldap_local_license_sync"); 
        $vQ = get_option("mo_ldap_local_license_verified"); 
        $fz = get_option("mo_ldap_local_license_key"); 
        if (!($vQ == "true" && !empty($fz) && strcasecmp($Hq, "24.0") == 0)) { 
            goto w8; 
        } 
        $so = new Mo_Ldap_Local_Customer(); 
        $OP = json_decode($so->XfskodsfhHJ($fz), true); 
        $rv = Jp_hwfrqar_mzwhwzl_arvowfra::bp_myjezr_hwfrqar_mzwhwzl($OP); 
        w8: 
    } 
    public static function is_extension_installed($GF) 
    { 
        if (in_array($GF, get_loaded_extensions())) { 
            goto Sz; 
        } 
        return false; 
        goto gp; 
        Sz: 
        return true; 
        gp: 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


class Mo_Ldap_Local_Util
{
    public static function is_customer_verified()
    {
        $xI = get_option("\x6d\157\x5f\x6c\x64\x61\160\x5f\154\x6f\x63\141\154\x5f\141\144\155\151\156\137\145\x6d\141\151\154");
        $xc = get_option("\155\x6f\137\154\144\141\x70\x5f\x6c\157\x63\141\154\x5f\141\144\x6d\x69\x6e\x5f\x63\165\x73\164\x6f\x6d\x65\162\x5f\153\145\x79");
        if (!$xI || !$xc || !is_numeric(trim($xc))) {
            goto HW;
        }
        return 1;
        goto gu;
        HW:
        return 0;
        gu:
    }
    public static function check_empty_or_null($QN)
    {
        if (!(!isset($QN) || empty($QN))) {
            goto FS;
        }
        return true;
        FS:
        return false;
    }
    public static function encrypt($yw)
    {
        if (Mo_Ldap_Local_Util::is_extension_installed("\x6f\160\x65\x6e\163\163\154")) {
            goto n4;
        }
        return;
        n4:
        $fz = get_option("\x6d\x6f\x5f\x6c\144\x61\x70\137\154\157\x63\141\x6c\137\x63\165\x73\x74\x6f\155\145\162\137\x74\157\x6b\145\x6e");
        $dU = "\x41\x45\123\x2d\x31\x32\x38\x2d\x45\x43\x42";
        $C9 = openssl_encrypt($yw, $dU, $fz, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING);
        return base64_encode($C9);
    }
    public static function decrypt($QN)
    {
        if (Mo_Ldap_Local_Util::is_extension_installed("\x6f\x70\145\156\163\x73\154")) {
            goto WK;
        }
        return;
        WK:
        $Qn = base64_decode(strval($QN));
        $fz = get_option("\x6d\x6f\x5f\154\144\141\160\137\154\x6f\143\x61\154\137\x63\165\x73\164\x6f\x6d\x65\x72\x5f\x74\157\153\x65\x6e");
        $dU = "\101\105\x53\55\x31\x32\x38\x2d\x45\103\102";
        $iu = openssl_cipher_iv_length($dU);
        $Ln = substr($Qn, $iu);
        $t9 = openssl_decrypt($Ln, $dU, $fz, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING);
        return $t9;
    }
    public static function is_curl_installed()
    {
        if (in_array("\x63\165\162\x6c", get_loaded_extensions())) {
            goto AW;
        }
        return 0;
        goto oV;
        AW:
        return 1;
        oV:
    }
    public static function bp_hjey_hpfeh_dy_mysvejr($Hq)
    {
        if (!(strcasecmp($Hq, "\156\x6f\156\145") == 0)) {
            goto op;
        }
        return;
        op:
        $bY = new DateTime("\156\x6f\167");
        $at = $bY->getTimestamp();
        wp_schedule_event($at, "\x64\141\151\x6c\x79", "\155\157\137\154\144\141\x70\137\154\157\143\141\154\137\x6c\x69\x63\x65\x6e\x73\x65\137\x73\x79\x6e\x63");
        $vQ = get_option("\155\157\x5f\154\144\141\160\x5f\x6c\x6f\x63\141\x6c\x5f\x6c\151\x63\x65\x6e\x73\x65\137\166\145\162\x69\146\151\x65\144");
        $fz = get_option("\x6d\x6f\137\154\144\x61\x70\x5f\x6c\157\x63\141\x6c\137\154\x69\x63\145\x6e\x73\x65\137\153\x65\x79");
        if (!($vQ == "\164\162\165\x65" && !empty($fz) && strcasecmp($Hq, "\62\64\56\60") == 0)) {
            goto w8;
        }
        $so = new Mo_Ldap_Local_Customer();
        $OP = json_decode($so->XfskodsfhHJ($fz), true);
        $rv = Jp_hwfrqar_mzwhwzl_arvowfra::bp_myjezr_hwfrqar_mzwhwzl($OP);
        w8:
    }
    public static function is_extension_installed($GF)
    {
        if (in_array($GF, get_loaded_extensions())) {
            goto Sz;
        }
        return false;
        goto gp;
        Sz:
        return true;
        gp:
    }
}

Function Calls

None

Variables

None

Stats

MD5 d5ca0456c43dc07a6542711e1c69a30d
Eval Count 0
Decode Time 39 ms