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_registered(..

Decoded Output download

<?php 
 
 
class Mo_Ldap_Local_Util 
{ 
    public static function is_customer_registered() 
    { 
        $n3 = get_option("mo_ldap_local_admin_email"); 
        $oV = get_option("mo_ldap_local_admin_customer_key"); 
        if (!$n3 || !$oV || !is_numeric(trim($oV))) { 
            goto TH; 
        } 
        return 1; 
        goto Hb; 
        TH: 
        return 0; 
        Hb: 
    } 
    public static function check_empty_or_null($Kq) 
    { 
        if (!(!isset($Kq) || empty($Kq))) { 
            goto D1; 
        } 
        return true; 
        D1: 
        return false; 
    } 
    public static function encrypt($M_) 
    { 
        if (Mo_Ldap_Local_Util::is_extension_installed("openssl")) { 
            goto da; 
        } 
        return; 
        da: 
        $fc = get_option("mo_ldap_local_customer_token"); 
        $sN = "AES-128-ECB"; 
        $v7 = openssl_encrypt($M_, $sN, $fc, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING); 
        return base64_encode($v7); 
    } 
    public static function decrypt($Kq) 
    { 
        if (Mo_Ldap_Local_Util::is_extension_installed("openssl")) { 
            goto l8; 
        } 
        return; 
        l8: 
        $bw = base64_decode($Kq); 
        $fc = get_option("mo_ldap_local_customer_token"); 
        $sN = "AES-128-ECB"; 
        $Be = openssl_cipher_iv_length($sN); 
        $hK = substr($bw, $Be); 
        $MB = openssl_decrypt($hK, $sN, $fc, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING); 
        return $MB; 
    } 
    public static function is_curl_installed() 
    { 
        if (in_array("curl", get_loaded_extensions())) { 
            goto xO; 
        } 
        return 0; 
        goto Zd; 
        xO: 
        return 1; 
        Zd: 
    } 
    public static function is_extension_installed($S7) 
    { 
        if (in_array($S7, get_loaded_extensions())) { 
            goto Rk; 
        } 
        return false; 
        goto B6; 
        Rk: 
        return true; 
        B6: 
    } 
} 
?> 

Did this file decode correctly?

Original Code

<?php


class Mo_Ldap_Local_Util
{
    public static function is_customer_registered()
    {
        $n3 = get_option("\x6d\x6f\137\x6c\144\141\x70\137\x6c\157\x63\x61\154\137\141\144\x6d\x69\x6e\137\x65\x6d\x61\x69\x6c");
        $oV = get_option("\x6d\x6f\137\154\x64\141\160\x5f\x6c\x6f\143\x61\x6c\x5f\x61\144\x6d\x69\156\x5f\143\x75\163\164\x6f\x6d\x65\162\x5f\153\x65\171");
        if (!$n3 || !$oV || !is_numeric(trim($oV))) {
            goto TH;
        }
        return 1;
        goto Hb;
        TH:
        return 0;
        Hb:
    }
    public static function check_empty_or_null($Kq)
    {
        if (!(!isset($Kq) || empty($Kq))) {
            goto D1;
        }
        return true;
        D1:
        return false;
    }
    public static function encrypt($M_)
    {
        if (Mo_Ldap_Local_Util::is_extension_installed("\x6f\x70\145\156\x73\163\154")) {
            goto da;
        }
        return;
        da:
        $fc = get_option("\155\x6f\x5f\x6c\144\141\160\137\154\x6f\143\141\154\137\x63\165\x73\x74\x6f\155\x65\162\137\x74\x6f\153\x65\x6e");
        $sN = "\x41\105\123\55\x31\x32\x38\x2d\105\103\x42";
        $v7 = openssl_encrypt($M_, $sN, $fc, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING);
        return base64_encode($v7);
    }
    public static function decrypt($Kq)
    {
        if (Mo_Ldap_Local_Util::is_extension_installed("\x6f\x70\145\x6e\163\x73\x6c")) {
            goto l8;
        }
        return;
        l8:
        $bw = base64_decode($Kq);
        $fc = get_option("\x6d\x6f\x5f\154\144\x61\x70\x5f\154\x6f\x63\141\154\137\x63\165\x73\164\157\x6d\145\162\x5f\x74\157\x6b\x65\156");
        $sN = "\101\105\123\55\61\x32\x38\55\x45\103\x42";
        $Be = openssl_cipher_iv_length($sN);
        $hK = substr($bw, $Be);
        $MB = openssl_decrypt($hK, $sN, $fc, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING);
        return $MB;
    }
    public static function is_curl_installed()
    {
        if (in_array("\x63\165\162\154", get_loaded_extensions())) {
            goto xO;
        }
        return 0;
        goto Zd;
        xO:
        return 1;
        Zd:
    }
    public static function is_extension_installed($S7)
    {
        if (in_array($S7, get_loaded_extensions())) {
            goto Rk;
        }
        return false;
        goto B6;
        Rk:
        return true;
        B6:
    }
}
?>

Function Calls

None

Variables

None

Stats

MD5 5fb755cd066ad6f7788233b80d6e7a91
Eval Count 0
Decode Time 41 ms