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 /** * @Description: * @Author: hmx * @version 1.0.0 * @Date: 2023/3/22 * ..

Decoded Output download

<?php 
/** 
 * @Description: 
 * @Author: hmx 
 * @version 1.0.0 
 * @Date: 2023/3/22 
 * @Time: 9:27 
 */ 
include_once('config/config.inc.php'); 
use Encryption\Encryption; 
ini_set('display_errors', 'On'); 
error_reporting(E_ALL); 
try { 
 
    $key = 'ADF8395BA8EE0039'; 
    $text = 'smartkmc|root|Kmc2019'; 
 
    $encryption = Encryption::getEncryptionObject('aes-256-ecb'); 
 
    $encryptedText = $encryption->encrypt($text, $key); 
    $decryptedText = $encryption->decrypt($encryptedText, $key); 
 
    printf('Cipher   : %s%s', $encryption->getName(), PHP_EOL); 
    printf('Encrypted: %s%s', $encryptedText, PHP_EOL); 
    printf('Decrypted: %s%s', $decryptedText, PHP_EOL); 
    printf('Version  : %s%s', Encryption::VERSION, PHP_EOL); 
    $text2 = 'smartvend|vend|vend123'; 
    $encryptedText2 = $encryption->encrypt($text2, $key); 
    $decryptedText2 = $encryption->decrypt($encryptedText2, $key); 
    printf('Cipher   : %s%s', $encryption->getName(), PHP_EOL); 
    printf('Encrypted: %s%s', $encryptedText2, PHP_EOL); 
    printf('Decrypted: %s%s', $decryptedText2, PHP_EOL); 
    printf('Version  : %s%s', Encryption::VERSION, PHP_EOL); 
} 
catch (EncryptionException $e) { 
    echo $e; 
} ?>

Did this file decode correctly?

Original Code

<?php
/**
 * @Description:
 * @Author: hmx
 * @version 1.0.0
 * @Date: 2023/3/22
 * @Time: 9:27
 */
include_once('config/config.inc.php');
use Encryption\Encryption;
ini_set('display_errors', 'On');
error_reporting(E_ALL);
try {

    $key = 'ADF8395BA8EE0039';
    $text = 'smartkmc|root|Kmc2019';

    $encryption = Encryption::getEncryptionObject('aes-256-ecb');

    $encryptedText = $encryption->encrypt($text, $key);
    $decryptedText = $encryption->decrypt($encryptedText, $key);

    printf('Cipher   : %s%s', $encryption->getName(), PHP_EOL);
    printf('Encrypted: %s%s', $encryptedText, PHP_EOL);
    printf('Decrypted: %s%s', $decryptedText, PHP_EOL);
    printf('Version  : %s%s', Encryption::VERSION, PHP_EOL);
    $text2 = 'smartvend|vend|vend123';
    $encryptedText2 = $encryption->encrypt($text2, $key);
    $decryptedText2 = $encryption->decrypt($encryptedText2, $key);
    printf('Cipher   : %s%s', $encryption->getName(), PHP_EOL);
    printf('Encrypted: %s%s', $encryptedText2, PHP_EOL);
    printf('Decrypted: %s%s', $decryptedText2, PHP_EOL);
    printf('Version  : %s%s', Encryption::VERSION, PHP_EOL);
}
catch (EncryptionException $e) {
    echo $e;
}

Function Calls

None

Variables

None

Stats

MD5 f80b34d6fc82b03eb003df00152f3297
Eval Count 0
Decode Time 57 ms