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 /** * This file is a part of the miniorange-saml-20-single-sign-on plugin. * ..
Decoded Output download
<?php
/**
* This file is a part of the miniorange-saml-20-single-sign-on plugin.
*
* @link https://plugins.miniorange.com/
* @author miniOrange
* @package miniorange-saml-20-single-sign-on
*/
namespace MOSAML\LicenseLibrary\Utils;
use MOSAML\LicenseLibrary\Classes\Mo_License_Dao;
use MOSAML\LicenseLibrary\Mo_License_Config;
if (defined("ABSPATH")) {
goto Es;
}
exit;
Es:
class Mo_License_API_Utility
{
public static function get_current_time_in_millis($KD)
{
$Qi = Mo_License_Dao::mo_get_option(Mo_License_Config::API_KEY_OPTION);
$g8 = round(microtime(true) * 1000);
$wF = $KD . number_format($g8, 0, '', '') . $Qi;
$GA = hash("sha512", $wF);
$g8 = number_format($g8, 0, '', '');
return array("milliTime" => $g8, "hash" => $GA);
}
public static function get_api_headers($KD, $t9, $GA)
{
return array("Content-Type" => "application/json", "Customer-Key" => $KD, "Timestamp" => $t9, "Authorization" => $GA);
}
public static function get_api_args($VG, $SX)
{
$YR = wp_json_encode($VG);
return array("method" => "POST", "body" => $YR, "timeout" => "10", "redirection" => "5", "httpversion" => "1.0", "blocking" => true, "headers" => $SX);
}
public static function mo_wp_remote_call($qp, $u5 = array(), $Vl = false)
{
if (!$Vl) {
goto is;
}
$uk = wp_remote_get($qp, $u5);
goto Nx;
is:
$uk = wp_remote_post($qp, $u5);
Nx:
if (!is_wp_error($uk)) {
goto mh;
}
return false;
goto ZN;
mh:
return $uk["body"];
ZN:
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* This file is a part of the miniorange-saml-20-single-sign-on plugin.
*
* @link https://plugins.miniorange.com/
* @author miniOrange
* @package miniorange-saml-20-single-sign-on
*/
namespace MOSAML\LicenseLibrary\Utils;
use MOSAML\LicenseLibrary\Classes\Mo_License_Dao;
use MOSAML\LicenseLibrary\Mo_License_Config;
if (defined("\x41\102\x53\x50\x41\124\x48")) {
goto Es;
}
exit;
Es:
class Mo_License_API_Utility
{
public static function get_current_time_in_millis($KD)
{
$Qi = Mo_License_Dao::mo_get_option(Mo_License_Config::API_KEY_OPTION);
$g8 = round(microtime(true) * 1000);
$wF = $KD . number_format($g8, 0, '', '') . $Qi;
$GA = hash("\x73\x68\x61\x35\61\62", $wF);
$g8 = number_format($g8, 0, '', '');
return array("\155\x69\154\x6c\151\124\x69\155\x65" => $g8, "\150\141\x73\x68" => $GA);
}
public static function get_api_headers($KD, $t9, $GA)
{
return array("\x43\x6f\x6e\164\x65\156\164\55\124\x79\x70\x65" => "\141\x70\160\154\x69\143\x61\x74\x69\157\156\x2f\152\163\x6f\156", "\x43\165\163\x74\x6f\155\145\162\55\x4b\x65\171" => $KD, "\x54\x69\155\145\163\x74\141\x6d\160" => $t9, "\x41\165\164\x68\157\162\151\172\x61\164\151\x6f\x6e" => $GA);
}
public static function get_api_args($VG, $SX)
{
$YR = wp_json_encode($VG);
return array("\155\x65\x74\x68\157\144" => "\x50\117\x53\x54", "\x62\x6f\x64\171" => $YR, "\x74\151\x6d\x65\x6f\165\164" => "\61\60", "\x72\145\x64\x69\x72\145\143\x74\x69\x6f\156" => "\x35", "\150\x74\164\x70\x76\x65\x72\163\x69\x6f\x6e" => "\61\56\60", "\x62\x6c\x6f\x63\153\x69\x6e\x67" => true, "\150\145\x61\x64\145\x72\163" => $SX);
}
public static function mo_wp_remote_call($qp, $u5 = array(), $Vl = false)
{
if (!$Vl) {
goto is;
}
$uk = wp_remote_get($qp, $u5);
goto Nx;
is:
$uk = wp_remote_post($qp, $u5);
Nx:
if (!is_wp_error($uk)) {
goto mh;
}
return false;
goto ZN;
mh:
return $uk["\142\157\x64\x79"];
ZN:
}
}
Function Calls
None |
Stats
MD5 | cf8f6eecb4cc4f747a96b8c1df2ddef6 |
Eval Count | 0 |
Decode Time | 111 ms |