Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
// ( ) $encryptionKey = 'AqAx+4ABUFzQqd+fM1xdd83dAPQezTPVKLX4IG97EpQjqP0LsBW//zUAW8R..
Decoded Output download
<? // ( )
$encryptionKey = 'AqAx+4ABUFzQqd+fM1xdd83dAPQezTPVKLX4IG97EpQjqP0LsBW//zUAW8RsEJUB'; //
//
function encryptData($data) {
global $encryptionKey;
$encrypted = openssl_encrypt($data, 'aes-256-cbc', $encryptionKey, OPENSSL_RAW_DATA, '0000000000000000');
return bin2hex($encrypted); //
}
//
function decryptData($data) {
global $encryptionKey;
$decrypted = openssl_decrypt(hex2bin($data), 'aes-256-cbc', $encryptionKey, OPENSSL_RAW_DATA, '0000000000000000');
return $decrypted;
} ?>
Did this file decode correctly?
Original Code
// ( )
$encryptionKey = 'AqAx+4ABUFzQqd+fM1xdd83dAPQezTPVKLX4IG97EpQjqP0LsBW//zUAW8RsEJUB'; //
//
function encryptData($data) {
global $encryptionKey;
$encrypted = openssl_encrypt($data, 'aes-256-cbc', $encryptionKey, OPENSSL_RAW_DATA, '0000000000000000');
return bin2hex($encrypted); //
}
//
function decryptData($data) {
global $encryptionKey;
$decrypted = openssl_decrypt(hex2bin($data), 'aes-256-cbc', $encryptionKey, OPENSSL_RAW_DATA, '0000000000000000');
return $decrypted;
}
Function Calls
None |
Stats
MD5 | 6d2c782a35eb5b0b67f6cfaa1c464d5f |
Eval Count | 0 |
Decode Time | 58 ms |