Beispiel #1
0
function CORE_decrypt($data)  {
	if(LICENSE_KEY == '') return $data;  // provide a license key in the setup area to enable encryption
	$rc4_key	= do_rc4(LICENSE_KEY, 'en', false);    
	$rc4_data 	= do_rc4($data, 'de', $rc4_key);  
	$rsa 		= new CORE_RSA;
	$keys 		= explode('-', LICENSE_KEY); 
	$rsa_data   = $rsa->rsa_decrypt($rc4_data, $keys[2], $keys[0]); 	
	return $rsa_data;
}
Beispiel #2
0
function CORE_decrypt($data)
{
    if (LICENSE_KEY == '') {
        return false;
    }
    $rc4_key = do_rc4(LICENSE_KEY, 'en', false);
    $rc4_data = do_rc4($data, 'de', $rc4_key);
    $rsa = new CORE_RSA();
    $keys = explode('-', LICENSE_KEY);
    $rsa_data = $rsa->rsa_decrypt($rc4_data, $keys[2], $keys[0]);
    return $rsa_data;
}