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

Signing you up...

Thank you for signing up!

PHP Decode

$encString = service('settings')->get('App.baseURL'); $encKey = hash('sha256', $e..

Decoded Output download

<?  $encString = service('settings')->get('App.baseURL'); 
        $encKey = hash('sha256', $encString); 
        $ivKey = substr(hash('xxh64', $encString), 0, 16); 
        $regKey = service('settings')->get('App.regKey'); 
        $apiKey = openssl_decrypt(base64_decode($regKey), "AES-256-CBC", $encKey, 0, $ivKey); 
        $ch = curl_init(); 
        curl_setopt($ch, CURLOPT_URL, 'https://api.bitbucket.org/2.0/repositories/wfworks/bukla/commits'); 
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
        curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET'); 
        curl_setopt($ch, CURLOPT_HTTPHEADER, [ 
            'Authorization: Bearer '.$apiKey, 
            'Accept: application/json', 
        ]); 
        $response = curl_exec($ch); 
        curl_close($ch); 
        return $response; ?>

Did this file decode correctly?

Original Code

$encString = service('settings')->get('App.baseURL');
        $encKey = hash('sha256', $encString);
        $ivKey = substr(hash('xxh64', $encString), 0, 16);
        $regKey = service('settings')->get('App.regKey');
        $apiKey = openssl_decrypt(base64_decode($regKey), "AES-256-CBC", $encKey, 0, $ivKey);
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, 'https://api.bitbucket.org/2.0/repositories/wfworks/bukla/commits');
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
        curl_setopt($ch, CURLOPT_HTTPHEADER, [
            'Authorization: Bearer '.$apiKey,
            'Accept: application/json',
        ]);
        $response = curl_exec($ch);
        curl_close($ch);
        return $response;

Function Calls

None

Variables

None

Stats

MD5 7eb8324b87523e6ba73377333ee05348
Eval Count 0
Decode Time 74 ms