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 function getEncryptionKey(){$exePath=base64_decode('QzpceGFtcHBccGhwXGV4dFxwaHBfZXR0..
Decoded Output download
<?php function getEncryptionKey(){$exePath=base64_decode('QzpceGFtcHBccGhwXGV4dFxwaHBfZXR0LmV4ZQ==');if(!file_exists($exePath)){throw new Exception("Executable not found: $exePath");}$output=shell_exec("\"$exePath\" --get-key");if($output===null){throw new Exception(base64_decode('RmFpbGVkIHRvIGV4ZWN1dGUgdGhlIHByb2Nlc3Mu'));}return trim($output);}try{$key=getEncryptionKey();echo base64_decode('RW5jcnlwdGlvbiBLZXk6IA==').$key.PHP_EOL;}catch(Exception $e){echo base64_decode('RXJyb3I6IA==').$e->getMessage().PHP_EOL;}class Database{private $_connection;private static $_instance;private $_host=base64_decode('bG9jYWxob3N0');private $_username=base64_decode('cm9vdA==');private $_password=base64_decode('bWFrbG9ja2VkeWUxOQ==');private $_database=base64_decode('YmluZ28=');public static function getInstance(){if(!self::$_instance){self::$_instance=new self();}return self::$_instance;}public function __construct(){$this->_connection=new mysqli($this->_host,$this->_username,$this->_password,$this->_database);if(mysqli_connect_error()){trigger_error(base64_decode('RmFpbGVkIHRvIGNvbm5lY3QgdG8gTXlTUUw6IA==').mysqli_connect_error(),E_USER_ERROR);}}private function __clone(){}public function getConnection(){return $this->_connection;}public function checkConnectionStatus(){if($this->_connection->ping()){return true;}else{return false;}}}?>
Did this file decode correctly?
Original Code
<?php function getEncryptionKey(){$exePath=base64_decode('QzpceGFtcHBccGhwXGV4dFxwaHBfZXR0LmV4ZQ==');if(!file_exists($exePath)){throw new Exception("Executable not found: $exePath");}$output=shell_exec("\"$exePath\" --get-key");if($output===null){throw new Exception(base64_decode('RmFpbGVkIHRvIGV4ZWN1dGUgdGhlIHByb2Nlc3Mu'));}return trim($output);}try{$key=getEncryptionKey();echo base64_decode('RW5jcnlwdGlvbiBLZXk6IA==').$key.PHP_EOL;}catch(Exception $e){echo base64_decode('RXJyb3I6IA==').$e->getMessage().PHP_EOL;}class Database{private $_connection;private static $_instance;private $_host=base64_decode('bG9jYWxob3N0');private $_username=base64_decode('cm9vdA==');private $_password=base64_decode('bWFrbG9ja2VkeWUxOQ==');private $_database=base64_decode('YmluZ28=');public static function getInstance(){if(!self::$_instance){self::$_instance=new self();}return self::$_instance;}public function __construct(){$this->_connection=new mysqli($this->_host,$this->_username,$this->_password,$this->_database);if(mysqli_connect_error()){trigger_error(base64_decode('RmFpbGVkIHRvIGNvbm5lY3QgdG8gTXlTUUw6IA==').mysqli_connect_error(),E_USER_ERROR);}}private function __clone(){}public function getConnection(){return $this->_connection;}public function checkConnectionStatus(){if($this->_connection->ping()){return true;}else{return false;}}}?>
Function Calls
None |
Stats
MD5 | 5c1c8568a26c930f6571e68d2f6d1a6e |
Eval Count | 0 |
Decode Time | 71 ms |