| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /HostingSpaces/admin/tickwaves.co.uk/wwwroot/wp-content/plugins/wp-job-portal/includes/ |
Upload File : |
<?php
if (!defined('ABSPATH'))
die('Restricted Access');
class WPJOBPORTALEncoder {
private $securekey, $iv;
function __construct($textkey) {
if($textkey != ''){
$this->securekey = hash('sha256', $textkey, TRUE);
}else{
$this->securekey = '';
}
$this->iv = mcrypt_create_iv(32);
}
function encrypt($input) {
$output = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $this->securekey, $input, MCRYPT_MODE_ECB, $this->iv);
return wpjobportalphplib::wpJP_safe_encoding($output);
}
function decrypt($input) {
$input = wpjobportalphplib::wpJP_safe_decoding($input);
return wpjobportalphplib::wpJP_trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $this->securekey, $input, MCRYPT_MODE_ECB, $this->iv));
}
}
?>