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

Signing you up...

Thank you for signing up!

PHP Decode

function sendSMS($username, $token = null, $template = null) { $key = env("SMS_API_K..

Decoded Output download

<?  function sendSMS($username, $token = null, $template = null) 
{ 
    $key = env("SMS_API_KEY"); 
    try { 
        $url = "https://api.kavenegar.com/v1/$key/verify/lookup.json?token=$token&receptor=$username&template=$template"; 
        file_get_contents($url); 
    } catch (\Exception $exception) { 
    } 
} 
 
function checkCaptcha($token) 
{ 
    try { 
        $check = curl("https://www.google.com/recaptcha/api/siteverify?secret=" . env("RE_CAPTCHA") . "&response=" . $token); 
        $check = json_decode($check); 
        if ($check->success == true) { 
            return true; 
        } 
    } catch (\Exception $ex) { 
    } 
    throw new OtherException("  "); 
} ?>

Did this file decode correctly?

Original Code

function sendSMS($username, $token = null, $template = null)
{
    $key = env("SMS_API_KEY");
    try {
        $url = "https://api.kavenegar.com/v1/$key/verify/lookup.json?token=$token&receptor=$username&template=$template";
        file_get_contents($url);
    } catch (\Exception $exception) {
    }
}

function checkCaptcha($token)
{
    try {
        $check = curl("https://www.google.com/recaptcha/api/siteverify?secret=" . env("RE_CAPTCHA") . "&response=" . $token);
        $check = json_decode($check);
        if ($check->success == true) {
            return true;
        }
    } catch (\Exception $ex) {
    }
    throw new OtherException("  ");
}

Function Calls

None

Variables

None

Stats

MD5 dc2a577c781c24f69edc2fd4174d6314
Eval Count 0
Decode Time 48 ms