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

Signing you up...

Thank you for signing up!

PHP Decode

public static function decrypt_data($h4, $WO) { $to = base64_decode($h4); ..

Decoded Output download

<?  public static function decrypt_data($h4, $WO) 
    { 
        $to = base64_decode($h4); 
        $WO = openssl_digest($WO, "sha256"); 
        $u0 = "AES-128-ECB"; 
        $Bn = openssl_cipher_iv_length($u0); 
        $PR = substr($to, 0, $Bn); 
        $h4 = substr($to, $Bn); 
        $Rp = openssl_decrypt($h4, $u0, $WO, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING, $PR); 
        return $Rp; 
    } ?>

Did this file decode correctly?

Original Code

public static function decrypt_data($h4, $WO)
    {
        $to = base64_decode($h4);
        $WO = openssl_digest($WO, "\x73\150\x61\62\x35\x36");
        $u0 = "\x41\x45\x53\x2d\x31\62\x38\55\105\103\102";
        $Bn = openssl_cipher_iv_length($u0);
        $PR = substr($to, 0, $Bn);
        $h4 = substr($to, $Bn);
        $Rp = openssl_decrypt($h4, $u0, $WO, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING, $PR);
        return $Rp;
    }

Function Calls

None

Variables

None

Stats

MD5 69ae4908a2dce64d8c3bfc6a41930bee
Eval Count 0
Decode Time 54 ms