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 /** * This file is a part of the miniorange-saml-20-single-sign-on plugin. * ..

Decoded Output download

<?php 
/** 
 * This file is a part of the miniorange-saml-20-single-sign-on plugin. 
 * 
 * @link https://plugins.miniorange.com/ 
 * @author miniOrange 
 * @package miniorange-saml-20-single-sign-on 
 */ 
 
 
class AESEncryption 
{ 
    public static function encrypt_data($jQ, $ns) 
    { 
        $ns = openssl_digest($ns, "sha256"); 
        $xW = "aes-128-ecb"; 
        $fV = openssl_encrypt($jQ, $xW, $ns, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING); 
        return base64_encode($fV); 
    } 
    public static function decrypt_data($jQ, $ns) 
    { 
        $E7 = base64_decode($jQ); 
        $ns = openssl_digest($ns, "sha256"); 
        $xW = "AES-128-ECB"; 
        $dJ = openssl_cipher_iv_length($xW); 
        $Z2 = substr($E7, 0, $dJ); 
        $jQ = substr($E7, $dJ); 
        $Kl = openssl_decrypt($jQ, $xW, $ns, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING, $Z2); 
        return $Kl; 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php
/**
 * This file is a part of the miniorange-saml-20-single-sign-on plugin.
 *
 * @link https://plugins.miniorange.com/
 * @author miniOrange
 * @package miniorange-saml-20-single-sign-on
 */


class AESEncryption
{
    public static function encrypt_data($jQ, $ns)
    {
        $ns = openssl_digest($ns, "\163\150\x61\x32\65\66");
        $xW = "\x61\145\163\x2d\61\62\x38\x2d\x65\143\142";
        $fV = openssl_encrypt($jQ, $xW, $ns, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING);
        return base64_encode($fV);
    }
    public static function decrypt_data($jQ, $ns)
    {
        $E7 = base64_decode($jQ);
        $ns = openssl_digest($ns, "\x73\x68\141\62\65\66");
        $xW = "\101\105\x53\55\x31\62\x38\55\105\103\x42";
        $dJ = openssl_cipher_iv_length($xW);
        $Z2 = substr($E7, 0, $dJ);
        $jQ = substr($E7, $dJ);
        $Kl = openssl_decrypt($jQ, $xW, $ns, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING, $Z2);
        return $Kl;
    }
}

Function Calls

None

Variables

None

Stats

MD5 3846fcc2dddb8a286d1f18a57d82262d
Eval Count 0
Decode Time 122 ms